moroshko/react-autosuggest

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

Open

#403 opened on Jul 12, 2017

 (7 comments) (4 reactions) (0 assignees)JavaScript (569 forks)batch import
bughelp wanted

Repository metrics

Stars
 (5,940 stars)
PR merge metrics
 (No merged PRs in 30d)

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