Skip to content

Commit

Permalink
Merge pull request #12058 from nextcloud/fix/12046/emoji-picker-clikc
Browse files Browse the repository at this point in the history
fix(MessagesButtonsBar): exclude click on emoji picker from outside click event listener
  • Loading branch information
Antreesy authored Apr 11, 2024
2 parents 89fcd4b + bd12234 commit 7adbb1f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -791,6 +791,11 @@ export default {

// Making sure that the click is outside the MessageButtonsBar
handleClickOutside(event) {
// check if click is inside the emoji picker
if (event.composedPath().some(element => element.classList?.contains('v-popper__popper--shown'))) {
return
}

if (event.composedPath().includes(this.$el)) {
return
}
Expand Down

0 comments on commit 7adbb1f

Please sign in to comment.