Commit c6cf940b authored by Matthieu Fesselier's avatar Matthieu Fesselier

Merge branch 'bugfix/15-close-menu-click-document' into 'master'

bugfix: close menu on click document #15

Closes #15

See merge request !8
parents ddb5808c 2276bb65
Pipeline #3479 passed with stage
in 27 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