Fix nextcloud navbar by hiding menu when clicking outside
This doesn't fix when clicking files app + button.
parent
bef6958ffb
commit
15a1d577fb
|
@ -12,4 +12,13 @@ jQuery(document).ready(() => {
|
|||
$('#dropdownMenuApps').toggle()
|
||||
})
|
||||
})
|
||||
$(window).click( (event) => {
|
||||
if (
|
||||
!$(event.target).parents(
|
||||
'#dropdownMenuAppsButton, #dropdownMenuApps'
|
||||
).length
|
||||
) {
|
||||
$('#dropdownMenuApps').hide()
|
||||
}
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue