jpmorganchase / salt-ds

React UI components built with a focus on accessibility, customisation and ease-of-use
https://www.saltdesignsystem.com
Apache License 2.0
109 stars 78 forks source link

Combo box to select complete text in Input when user wants to clear/update the selected value #3600

Open VAIBHAVHATISKAR21 opened 2 weeks ago

VAIBHAVHATISKAR21 commented 2 weeks ago

Area

UI Components

The problem

Currently when user selects an item in Combo box , and then clicks on Pill-Input component of Combo box again to clear/change the value , they have to either clear the input manually using backspace (till all the alphabets are cleared) or by Ctrl + A and then backspace.

The solution

When a value is selected in Combo box and when user clicks on it again, it should select complete text by default . So it can be cleared completely, and in case of update user can traverse using navigation keys.

Alternatives and examples

Have not explored any alternatives.

Are you a JPMorgan Chase & Co. employee?