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

za11y: hover navitem without children (JS Error)

XMLWordPrintable

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

      Steps to Reproduce

      run the example

      <zk>
          <navbar collapsed="true" orient="vertical" width="50px">
              <nav iconSclass="z-icon-user" label="Users">
                  <navitem label="test 1"/>
                  <navitem label="test 2"/>
                  <navitem label="test 3"/>
              </nav>
              <nav iconSclass="z-icon-car" label="Cars"/>
          </navbar>
      </zk>
      

      mouse hover the "Cars" menu as shown in the screenshot below

      Current Result

      JS Errors appear in the console

      za11y.wpd:4588 Uncaught TypeError: Cannot read property 'nextSibling' of undefined
          at Object.findFirstVisibleChild (za11y.wpd:4588)
          at init._setAriaExpanded (za11y.wpd:4722)
          at init._openPopup (za11y.wpd:4738)
          at init._doMouseEnter (zkmax.nav.wpd:224)
          at HTMLAnchorElement.<anonymous> (zk.wpd:20503)
          at HTMLAnchorElement.handle (zk.wpd:6094)
          at HTMLAnchorElement.dispatch (zk.wpd:5614)
          at HTMLAnchorElement.elemData.handle (zk.wpd:5418)
      findFirstVisibleChild	@	za11y.wpd:4588
      _setAriaExpanded	@	za11y.wpd:4722
      _openPopup	@	za11y.wpd:4738
      _doMouseEnter	@	zkmax.nav.wpd:224
      (anonymous)	@	zk.wpd:20503
      handle	@	zk.wpd:6094
      dispatch	@	zk.wpd:5614
      elemData.handle	@	zk.wpd:5418
      

      Expected Result

      no errors

      Debug Information

      Workaround

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

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 1 hour
                1h
                Remaining:
                Remaining Estimate - 1 hour
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified