Skip to content

Commit 199aaa2

Browse files
committed
(fix) several words tag selection
1 parent 8c0197c commit 199aaa2

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/lib/Room/Room.vue

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -791,13 +791,7 @@ export default {
791791
position--
792792
}
793793
794-
let endPosition = position
795-
while (
796-
this.message.charAt(endPosition) &&
797-
this.message.charAt(endPosition).trim()
798-
) {
799-
endPosition++
800-
}
794+
const endPosition = this.getTextareaRef().selectionEnd
801795
802796
return { position, endPosition }
803797
},

0 commit comments

Comments
 (0)