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

Navbar autoclose not working if the navitem is already selected

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 9.6.0
    • 8.0.5
    • Components
    • None

      Steps to Reproduce

      https://zkfiddle.org/sample/3ajkuj1/2-navbar-jumping-focus#source-1
      1. click nav1 then click navitem2
      2 .click nav1 then click navitem2 again

      Current Result

      1. click nav1 then click navitem2 => nav1 will close
      2 .click nav1 then click navitem2 again => nav1 still opened

      Expected Result

      Notice:  the current result might not a bug.
      1. click nav1 then click navitem2 => nav1 will close
      2 .click nav1 then click navitem2 again => nav1 will close

      Debug Information

      https://github.com/zkoss/zkcml/blob/d1884c06e124f4f6b35d676fd2a1d1fbd09ed794/zkmax/src/archive/web/js/zkmax/nav/Navbar.js#L88-L91
      the autoclose will check the selected navitem changed
      if the selected navitem not changed, then other nav won't close.

      Workaround

       

            Leon03 Leon03
            Leon03 Leon03
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: