fix errors related to selection
This commit is contained in:
parent
9e17be813d
commit
42aa58bc68
|
@ -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 () {
|
||||
|
|
Loading…
Reference in a new issue