Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fixed] Select highlighted item on input click (reactjs#84)
While trying to debug reactjs#80 I discovered that clicking the input field to "confirm" a suggestion didn't work as expected. The problem: 1. Navigate to https://reactcommunity.org/react-autocomplete/static-data/ 2. Type 'a' in input field 3. Observe that the input has been filled with 'Alabama' 4. Click anywhere inside the input field 5. Observe that the highlighted selection is gone, and the menu has been closed 6. Click/tab outside the input 7. Observe that the input value has been reverted to 'a' This change ensures that clicking in the input field has the same effect as clicking the highlighted item in the suggestion menu.
- Loading branch information