We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c0197c commit 199aaa2Copy full SHA for 199aaa2
src/lib/Room/Room.vue
@@ -791,13 +791,7 @@ export default {
791
position--
792
}
793
794
- let endPosition = position
795
- while (
796
- this.message.charAt(endPosition) &&
797
- this.message.charAt(endPosition).trim()
798
- ) {
799
- endPosition++
800
- }
+ const endPosition = this.getTextareaRef().selectionEnd
801
802
return { position, endPosition }
803
},
0 commit comments