logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://anongit.hacktivis.me/git/pleroma-fe.git/
commit: 42aa58bc68bba20ebfc75add0ea4dfdf53f94753
parent 9e17be813d093c9337824d9aa78fffe786c8ccc3
Author: Henry Jameson <me@hjkos.com>
Date:   Sun, 22 Dec 2024 16:41:42 +0200

fix errors related to selection

Diffstat:

Msrc/components/mention_link/mention_link.js4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/components/mention_link/mention_link.js b/src/components/mention_link/mention_link.js @@ -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 () {