@@ -201,6 +201,7 @@ import vClickOutside from '../../../utils/on-click-outside'
201201import filteredItems from ' ../../../utils/filter-items'
202202import Recorder from ' ../../../utils/recorder'
203203
204+ import { detectChrome } from ' ../../../utils/browser-detection'
204205import { detectMobile } from ' ../../../utils/mobile-detection'
205206
206207export default {
@@ -394,9 +395,10 @@ export default {
394395
395396 if (this .cursorRangePosition ) {
396397 setTimeout (() => {
398+ const offset = detectChrome () ? 0 : 1
397399 this .getTextareaRef ().setSelectionRange (
398- this .cursorRangePosition ,
399- this .cursorRangePosition
400+ this .cursorRangePosition + offset ,
401+ this .cursorRangePosition + offset
400402 )
401403 this .cursorRangePosition = null
402404 })
@@ -445,13 +447,13 @@ export default {
445447 updateActiveUpOrDown (event , direction ) {
446448 if (this .filteredEmojis .length ) {
447449 this .activeUpOrDownEmojis = direction
448- event .preventDefault ()
450+ event .preventDefault ()
449451 } else if (this .filteredUsersTag .length ) {
450452 this .activeUpOrDownUsersTag = direction
451- event .preventDefault ()
453+ event .preventDefault ()
452454 } else if (this .filteredTemplatesText .length ) {
453455 this .activeUpOrDownTemplatesText = direction
454- event .preventDefault ()
456+ event .preventDefault ()
455457 }
456458 },
457459 selectItem () {
0 commit comments