Hi,
I have a small issue using nested kvision's dropDown().
Using the following sample code:
root("kvapp") {
navbar(collapseOnClick = true) {
dropDown(text = "Option 1", forNavbar = true) {
dropDown(text = "1st Sub menu", forDropDown = true, autoClose = AutoClose.OUTSIDE) {
ddLink("Menu item")
ddLink("Menu item")
dropDown(text = "2nd Dropdown", forDropDown = true) {
ddLink("Menu item")
ddLink("Menu item")
ddLink("Menu item")
}
}
separator()
dropDown(text = "2nd Sub menu", forDropDown = true, autoClose = AutoClose.OUTSIDE) {
onEventLaunch("show.bs.dropdown") {
console.warn("change 2")
}
ddLink("Sub menu 2.1")
ddLink("Sub menu 2.2")
ddLink("Sub menu 2.3")
}
}
}
}
If I click the 1st sub menu entry I get:
and when I click the second sub menu entry I get:
So, it seems that the first sub menu entry is not closed when the second sub menu entry is selected, seems that the event action is not propagated when the second menu is clicked and the 1st menu entry doesn't close.
Any help or insight will be greatly appreciated !
Thanks in advance,
Teo
Hi,
I have a small issue using nested kvision's dropDown().
Using the following sample code:
If I click the 1st sub menu entry I get:
and when I click the second sub menu entry I get:
So, it seems that the first sub menu entry is not closed when the second sub menu entry is selected, seems that the event action is not propagated when the second menu is clicked and the 1st menu entry doesn't close.
Any help or insight will be greatly appreciated !
Thanks in advance,
Teo