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

menu click listener ignored (unexpectedly)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 9.6.0
    • 9.1.0, 9.5.0.2
    • Components
    • Security Level: Jimmy
    • None

      Steps to Reproduce

          <menubar>
              <menu id="topMenu" label="Top Menu"
                    onClick='Clients.log(event.toString());'>
                  <menupopup>
                      <menu id="nestedMenu" label="Nested Menu"
                            onClick='Clients.log(event.toString());'>
                          <menupopup>
                              <menuitem id="menuItem" label="test"
                                        onClick='Clients.log(event.toString());'/>
                          </menupopup>
                      </menu>
                  </menupopup>
              </menu>
          </menubar>
      

      Click "Nested Menu"

      Current Result

      onClick listener doesn't fire

      Expected Result

      onClick listener fires

      Debug Information

      click listeners work for top level {{<menu>}}s and for nested {{<menuitem>}}s

      Workaround

          <style>
              .z-menu-separator {
                  display: inline-block;
              }
          </style>
      

            katherinelin katherinelin
            cor3000 cor3000
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 1 day
                1d
                Logged:
                Time Spent - Not Specified
                Not Specified