AutoComplete: autoselect first item

UI Components for React
Post Reply
Posts: 12
Joined: 25 Jun 2018, 05:22

04 Feb 2021, 08:25

Looking for advice how to implement next feature:
When user start searching for item using autocomplete control (multiselect), the panel with suggestions appears. Is there a way to automatically select first item in the suggested list, so that if user clicks on enter, first item is selected? Currently user need to press arrow down (even if panel is opened on top of the input box) to select first item.
To reproduce:
- open ... tocomplete
- start typing in 'Multiple' autocomplete
- click enter - nothing happen
- click arrow down and then enter - first item is selected

Any help is really appreciated.


Posts: 4637
Joined: 29 Jun 2013, 12:38

05 Feb 2021, 09:32


Please use autoHighlight property on 6.0.2;

Best Regards,

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest