dijit.MenuItem 值自动突出显示...如何停止此操作?
我正在使用 Dojo 1.3.1,并且有一个 dijit.Menu 和几个 dijit.MenuItem 项目。当用户右键单击使用 (dijit.byId("contextmenu_pf")).bindDomNode(...) 绑定到菜单的项目时,菜单将显示为上下文菜单。一切正常,但当显示菜单时,一个或多个菜单项经常会突出显示(除了第一个菜单项)。这似乎是随机的,与之前选择的项目没有关系。甚至还会显示一些突出显示的菜单选项。
有没有人见过这种行为和/或知道如何阻止它发生?
谢谢-彼得
I am using Dojo 1.3.1 and have a dijit.Menu with several dijit.MenuItem items. The menu is displayed as a context menu when the user right-clicks on items that were bound to the menu using (dijit.byId("contextmenu_pf")).bindDomNode(...). All works well, but frequently when the menu is displayed, one or more of the menu items are highlighted (aside from the first one). This seems to be random and has no relationship to previously selected items. Some of the highlighted menu options are even displayed.
Has anyone seen this behavior and/or know how to stop it from happening?
Thanks - Peter
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是一个已知问题,归档为 http://bugs.dojotoolkit.org/ticket/10339。
该链接中的附件还列出了一些解决方法代码。
This is a known issue, filed as http://bugs.dojotoolkit.org/ticket/10339.
The attachment in that link also lists some workaround code.