Hide the user menu if clicked outside of it

This commit is contained in:
kolaente 2020-07-29 22:01:54 +02:00
parent aa67a6971a
commit e4f4df0655
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
2 changed files with 5 additions and 2 deletions

View file

@ -241,7 +241,7 @@
created() {
this.taskService = new TaskService()
this.loadBuckets()
setTimeout(() => document.addEventListener('click', this.closeBucketDropdowns), 0)
this.$nextTick(() => document.addEventListener('click', this.closeBucketDropdowns))
// Save the current list view to local storage
// We use local storage and not vuex here to make it persistent across reloads.