Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-4884

Menuitem addActive adds hover style to ancestor menu, doesn't clean it

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 9.6.0
    • 9.5.0
    • Components
    • Security Level: Jimmy

      Steps to Reproduce

      https://zkfiddle.org/sample/2jmdcl8/4-menu-hover-not-cleaned

      run fiddle in 9.5.1.3

      Click on menu, click on menuitem,

      Click on 2nd menu, click on menuitem,

      click on a different component (radio, or checkbox) without hovering the menus

      Current Result

      the z-menu-hover class is not removed from menus

      Iceblue doesn't have a hover style, so it's not visible.

      atlantic and any other theme with a hover style has a remaining active style even after the menu is not longer active

      Expected Result

      the z-menu-hover class is removed from menu

      Debug Information

      https://github.com/zkoss/zk/commit/7ee01f981c5bd1c77ab267137fd851d917c83362#diff-81639ea3ea158d6d89b946aaecff231d4c7a1b9169234d45d871bf9deaa63248R434

      Workaround

       

            rudyhuang rudyhuang
            MDuchemin MDuchemin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Time Spent - 2 hours Remaining Estimate - 6 hours
                6h
                Logged:
                Time Spent - 2 hours Remaining Estimate - 6 hours
                2h