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,8 +53,10 @@ const MentionLink = {
this.$router.push(link)
},
handleSelection () {
if (this.$refs.full) {
this.hasSelection = document.getSelection().containsNode(this.$refs.full, true)
}
}
},
mounted () {
document.addEventListener('selectionchange', this.handleSelection)