Autocomplete: "enter" key broken in V10.5 #6277
Labels
Component: Accessibility
Issue or pull request is related to WCAG or ARIA
Type: Bug
Issue contains a defect related to a specific component.
Milestone
Describe the bug
Current behavior:
In version 10.5+, pressing "enter" results in the
value
prop being cleared and the popup is closed. The highlighted item is not selected.Expected behavior:
In version 10.4, pressing "enter" selects the highlighted item and closes the popup if popup is visible.
Reproduction:
https://stackblitz.com/edit/jwpfxu?file=src%2FApp.jsx
I installed v10.4 by aliasing it as
primereact-ten-four
in the package file, and renamed the import asAutoCompleteTenFour
.Reproducer
https://stackblitz.com/edit/jwpfxu?file=src%2FApp.jsx
PrimeReact version
10.6.2
React version
18.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
alpha-0
.Expected behavior
The expected behavior is the highlighted value is selected upon pressing the "enter" key.
The text was updated successfully, but these errors were encountered: