Capgemini / dcx-react-library

React Library UI/UX agnostic
https://main--6069a6f47f4b9f002171f8e1.chromatic.com
MIT License
113 stars 6 forks source link

Autocomplete: Selecting a dropdown option with the mouse no longer works #399

Closed sri-viswanathan closed 1 year ago

sri-viswanathan commented 1 year ago

Describe the bug After typing the minimum number of characters required to display the options list, using a mouse to choose an option no longer works

To Reproduce Steps to reproduce the behaviour:

  1. Use the release/0.6 branch or create a branch off of it
  2. Go to a page that uses the Autocomplete component or start up Storybook for this library
  3. Type in the minimum characters required to display the options list
  4. Hover over an option and click on it to select
  5. The options list disappears but the option has not been selected and the input still contains the original characters that were typed in

Expected behavior This used to work properly but is now broken. Choosing an option from the list should cause the options list to disappear and the chosen option should appear in the input field

Please follow the following instructions to create the new branch:

git checkout release/0.6
git pull
git checkout -b 'feature/<issueNumber>-autocomplete-mouse-select'
daniele-zurico commented 1 year ago

merged #400