Skip to content

Commit

Permalink
fix: close the ncselect dropdown when clicked somewhere else
Browse files Browse the repository at this point in the history
Signed-off-by: greta <gretadoci@gmail.com>
  • Loading branch information
GretaD committed Jul 5, 2024
1 parent 6ba0798 commit d6daaef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/Composer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,10 @@ export default {
},
methods: {
clearOnBlur(event) {
return this.recipientSearchTerms[event].includes('@')
if (this.recipientSearchTerms[event]) {
return this.recipientSearchTerms[event].includes('@')
}
return false
},
handleShow(event) {
this.$emit('show-toolbar', event)
Expand Down

0 comments on commit d6daaef

Please sign in to comment.