Skip to content

Commit

Permalink
stop trying to close a closed dropdown
Browse files Browse the repository at this point in the history
which stops the side effect of immediately closing a dropdown
that you are trying to open
  • Loading branch information
13twelve committed Jan 6, 2025
1 parent 053c544 commit 23bbbe3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/js/components/Dropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@
}
},
closeFromDoc: function (event) {
if (!this.active) return
const target = event.target
if (event.type === 'scroll') {
Expand Down

0 comments on commit 23bbbe3

Please sign in to comment.