|
此文章由 江苏小伙子 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 江苏小伙子 所有!转贴必须注明作者、出处和本声明,并保持内容完整
Seems a bug.
Workarounds I can think of.
1. disable all sub menu items as well when disabling the Test 1 menu item. In this case, even if the Test 1 sub menu items show up, no one can click on it.
2. When disabling Test1, remove all its sub menus. When re-enabling Test1 menu item, dynamically create its sub menu items and hook up it to Test 1 menu item. If there are a lot of menu/submenu in the application, it could be a significant code change. |
|