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

Navbar autoclose not working if the navitem is already selected

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 8.0.5
    • Fix Version/s: 9.6.0
    • Component/s: Components
    • Labels:

      Description

      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

       

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: