AUI 日期选择器和 IE
AUI Datepicker & IE
有点简单的问题,但似乎 Liferay (v.6.2 CE) 中的 AUI 日期选择器直接在 IE 上不起作用,我已经尝试过 IE8、IE9、IE10 和 Edge . (它只是显示为文本输入元素,无法使用在其他浏览器上显示的可点击弹出窗口)
有没有人遇到过类似的问题?您决定采用哪些解决方法?我讨厌不得不使用像 jQuery UI 这样的新库或仅仅因为这个愚蠢的元素不起作用而导入 polyfill 的想法。虽然如果它是唯一的解决方案它是唯一的解决方案!
任何建议将不胜感激!
-灰
[编辑 1]
<aui:input label="cp-dob" name="sp_dob" type="date">
<aui:validator name="date" />
</aui:input>
<aui:input type="date" />
没有内置弹出窗口。您在非 IE 浏览器中看到的弹出窗口是 HTML5 <input type="date" />
popup (which is why it is different in different browsers). If you want a date input which pops up a calendar in all browsers, use <liferay-ui:input-date />
which uses AlloyUI's DatePicker
component.
有点简单的问题,但似乎 Liferay (v.6.2 CE) 中的 AUI 日期选择器直接在 IE 上不起作用,我已经尝试过 IE8、IE9、IE10 和 Edge . (它只是显示为文本输入元素,无法使用在其他浏览器上显示的可点击弹出窗口)
有没有人遇到过类似的问题?您决定采用哪些解决方法?我讨厌不得不使用像 jQuery UI 这样的新库或仅仅因为这个愚蠢的元素不起作用而导入 polyfill 的想法。虽然如果它是唯一的解决方案它是唯一的解决方案!
任何建议将不胜感激!
-灰
[编辑 1]
<aui:input label="cp-dob" name="sp_dob" type="date">
<aui:validator name="date" />
</aui:input>
<aui:input type="date" />
没有内置弹出窗口。您在非 IE 浏览器中看到的弹出窗口是 HTML5 <input type="date" />
popup (which is why it is different in different browsers). If you want a date input which pops up a calendar in all browsers, use <liferay-ui:input-date />
which uses AlloyUI's DatePicker
component.