fix(Sidebar): Only close sidebar on v-click-outside for specific targets

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2023-01-02 08:50:53 +01:00
parent 0f71a525c0
commit 9cc199dc47
3 changed files with 6 additions and 5 deletions

View File

@@ -38,10 +38,9 @@ export default {
this.$router.push({ name: 'board' })
},
onClickOutside(e) {
if (Array.from(document.querySelectorAll('.card')).some(node => node.contains(e.target))) {
return
if (e.target?.dataset?.clickClosesSidebar) {
this.closeSidebar()
}
this.closeSidebar()
},
},
}