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

menu click listener ignored (unexpectedly)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 9.1.0, 9.5.0.2
    • Fix Version/s: 9.6.0
    • Component/s: Components
    • Security Level: Jimmy
    • Labels:

      Description

      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>
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

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