fix errors related to selection

This commit is contained in:
Henry Jameson 2024-12-22 16:41:42 +02:00
parent 9e17be813d
commit 42aa58bc68

View file

@ -53,7 +53,9 @@ const MentionLink = {
this.$router.push(link)
},
handleSelection () {
this.hasSelection = document.getSelection().containsNode(this.$refs.full, true)
if (this.$refs.full) {
this.hasSelection = document.getSelection().containsNode(this.$refs.full, true)
}
}
},
mounted () {