moroshko/react-autosuggest

Input field caret position always resets to the end of the input

Open

#403 opened on Jul 12, 2017

View on GitHub
 (7 comments) (4 reactions) (0 assignees)JavaScript (5,936 stars) (637 forks)batch import
bughelp wanted

Description

The bug is testable with the Scrollable container example on http://react-autosuggest.js.org/

To reproduce:

  1. Focus on the input field
  2. Type ac
  3. Place the caret between a and c
  4. Type b

Observed behavior:

The caret jumps to the end.

Expected behavior:

The caret should stay between b and c.

Contributor guide