简体   繁体   English

allowTextInput在Office UI Fabric Datepicker中不起作用

[英]allowTextInput not working in office UI Fabric Datepicker

I have created a date picker with Office-ui-fabric-react. 我已经用Office-ui-fabric-react创建了一个日期选择器。 I have enabled the "allowTextInput" property. 我已启用“ allowTextInput”属性。 I can able to edit the text input in Chrome, but its not working in IE 11. 我可以在Chrome中编辑文本输入,但在IE 11中不起作用。

Observed behavior: 观察到的行为:

Chrome: Working fine in both Keyboard Navigation and in Mouse click. Chrome:在“键盘导航”和“鼠标单击”中均能正常工作。 IE 11: Working fine in Keyboard Navigation, but cannot able to edit on mouse click. IE 11:在“键盘导航”中工作正常,但无法通过单击鼠标进行编辑。

This issue was closed. 此问题已关闭。 Please find more details on the below link. 请在下面的链接中找到更多详细信息。

https://github.com/OfficeDev/office-ui-fabric-react/issues/6008#issuecomment-419257396 https://github.com/OfficeDev/office-ui-fabric-react/issues/6008#issuecomment-419257396

the solution on linked comment look like this: 链接评论的解决方案如下所示:

<div aria-label=”Tag” role=”combobox” aria-expanded=”true” aria-owns=”owned_listbox” aria-haspopup=”listbox”>
  <input type=”text” aria-autocomplete=”list” aria-controls=”owned_listbox” aria-activedescendant=”selected_option”>
</div>
<ul role=”listbox” id=”owned_listbox”>
  <li role=”option”>Zebra</li>
  <li role=”option” id=”selected_option”>Zoom</li>
</ul>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM