Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.12.2
-
None
Description
In this example modal overlay doesn't block tap input if nested menu is open:
Rectangle { anchors.fill: parent TapHandler { onTapped: { console.debug("Tapped!!!") } } ToolButton { id: toolButton anchors.centerIn: parent text: "Open Menu" onClicked: mainMenu.open() Menu { id: mainMenu modal: true y: toolButton.height Menu { id: subMenu title: "Advanced" MenuItem { text: "First Option" } MenuItem { text: "Second Option" } } } } }
If you open the nested menu and then click somewhere nearby, TapHandler will handle the event. Although the nested menu is not modal, interaction with the content below should be blocked by the main modal menu.