Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions ui/src/components/menu/QMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,11 @@ export default createComponent({
if (props.persistent !== true && showing.value === true) {
hide(e)

// prevent further processing of click-outside handlers
if (props.separateClosePopup === true) {
e.qSeparateClosePopup = true
}

if (
// always prevent touch event
e.type === 'touchstart'
Expand Down
5 changes: 5 additions & 0 deletions ui/src/utils/private.click-outside/click-outside.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ function globalHandler (evt) {
// used to prevent refocus after menu close
evt.qClickOutside = true
state.onClickOutside(evt)

// used to prevent closing all if nested
if (evt.qSeparateClosePopup === true) {
return
}
}
else {
return
Expand Down