Commit 2276bb65 authored by Matthieu Fesselier's avatar Matthieu Fesselier

bugfix: close menu on click document

parent ddb5808c
Pipeline #3477 passed with stage
in 28 seconds
......@@ -36,6 +36,12 @@ class SIBNotifications extends SIBTemplateElement {
}
})
// Document -> close menu
document.addEventListener("click", event => {
if (!event.target.closest('.sib-notifications')) {
this.querySelector('details').removeAttribute("open")
}
});
}
static get propsDefinition() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment