@@ -201,6 +201,7 @@ import vClickOutside from '../../../utils/on-click-outside'
201
201
import filteredItems from ' ../../../utils/filter-items'
202
202
import Recorder from ' ../../../utils/recorder'
203
203
204
+ import { detectChrome } from ' ../../../utils/browser-detection'
204
205
import { detectMobile } from ' ../../../utils/mobile-detection'
205
206
206
207
export default {
@@ -394,9 +395,10 @@ export default {
394
395
395
396
if (this .cursorRangePosition ) {
396
397
setTimeout (() => {
398
+ const offset = detectChrome () ? 0 : 1
397
399
this .getTextareaRef ().setSelectionRange (
398
- this .cursorRangePosition ,
399
- this .cursorRangePosition
400
+ this .cursorRangePosition + offset ,
401
+ this .cursorRangePosition + offset
400
402
)
401
403
this .cursorRangePosition = null
402
404
})
@@ -445,13 +447,13 @@ export default {
445
447
updateActiveUpOrDown (event , direction ) {
446
448
if (this .filteredEmojis .length ) {
447
449
this .activeUpOrDownEmojis = direction
448
- event .preventDefault ()
450
+ event .preventDefault ()
449
451
} else if (this .filteredUsersTag .length ) {
450
452
this .activeUpOrDownUsersTag = direction
451
- event .preventDefault ()
453
+ event .preventDefault ()
452
454
} else if (this .filteredTemplatesText .length ) {
453
455
this .activeUpOrDownTemplatesText = direction
454
- event .preventDefault ()
456
+ event .preventDefault ()
455
457
}
456
458
},
457
459
selectItem () {
0 commit comments