-
Bug
-
Resolution: Fixed
-
Normal
-
8.0.5
-
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