Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Add autoHighlight property to AutoComplete #1362

Closed
tft7000 opened this issue Jul 2, 2021 · 1 comment · Fixed by #1429
Closed

[Feature Request] Add autoHighlight property to AutoComplete #1362

tft7000 opened this issue Jul 2, 2021 · 1 comment · Fixed by #1429
Assignees
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone

Comments

@tft7000
Copy link

tft7000 commented Jul 2, 2021

I'm submitting a feature request

[ ] bug report => Search github for a similar issue or PR before submitting
[x] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primevue/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=110

Current behavior
On typing the AutoComplete component shows the dropdown. However, to select the first available entry, the user has to use the mouse or click on the arrow down.

Expected behavior
Optionally the first item of the dropdown should be automatically selected

What is the motivation / use case for changing the behavior?
Better UX in some cases: eg to add a list of items, I would like to type some letters, click enter (to add the first entry), type letter, click enter (to add another entry) and so forth.

  • Vue version: 3.X
    3.1.2

  • PrimeVue version: 3.4.X
    3.5.1

Note:
In primereact the same Issue was solved here: primefaces/primereact#1801

@cagataycivici cagataycivici added the Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add label Jul 26, 2021
@mouadTaoussi
Copy link
Contributor

I'm gonna add this feature for You as soon as possible! I Hope it get merged!

@mertsincan mertsincan self-assigned this Sep 15, 2021
@mertsincan mertsincan added this to the 3.7.2 milestone Sep 15, 2021
mertsincan pushed a commit that referenced this issue Sep 15, 2021
* Adding autoHighlight to first element in autocomplete

* Adding autoHighlight to first element in autocomplete

* Adding autoHighlight to first element in autocomplete

* Adding autoHighlight to first element in autocomplete

* Added autoHighlight to first element in autocomplete

* Added autoHighlight to first element in autocomplete: set default to false
mertsincan added a commit that referenced this issue Sep 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants