Skip to content
Permalink
Browse files

fix: cursor jumping on android (#275)

  • Loading branch information
hashwin authored and jfschwarz committed Oct 2, 2018
1 parent 19fb251 commit f0732942ccfd6770d0a0e2eebaa5ea3c4f227653
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/MentionsInput.js
@@ -368,15 +368,15 @@ class MentionsInput extends React.Component {

// Handle input element's select event
handleSelect = ev => {
// do nothing while a IME composition session is active
if (isComposing) return

// keep track of selection range / caret position
this.setState({
selectionStart: ev.target.selectionStart,
selectionEnd: ev.target.selectionEnd,
})

// do nothing while a IME composition session is active
if (isComposing) return

// refresh suggestions queries
const el = this.inputRef
if (ev.target.selectionStart === ev.target.selectionEnd) {

0 comments on commit f073294

Please sign in to comment.
You can’t perform that action at this time.