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:
@@ -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()
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user