Dropdown: Unable to type in editable Dropdowns when filtering options onChange and current value is an option #14556
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
Given:
editable
,options
,onChange
callback that filters theseoptions
based on the current value,When:
options
,Then:
For example:
The Dropdown options are
['apple', 'banana', 'orange']
. TheonChange
handler filters the options based on the current dropdown value. The user types "apple" into the dropdown. They try to type " 2" to change the value to "apple 2", but the value remains "apple".Environment
Stackblitz
Reproducer
https://stackblitz.com/edit/stackblitz-starters-vh2vfb?file=src%2Fmain.ts
Angular version
17.0.9
PrimeNG version
17.3.2
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
Whichever Node version Stackblitz uses
Browser(s)
No response
Steps to reproduce the behavior
[editable]="true"
, an array ofoptions
, and anonChange
handler that filters theoptions
based on the Dropdown's current value.Expected behavior
The user should be able to continue typing whatever they want into an editable Dropdown, even if the current value equals an option.
The text was updated successfully, but these errors were encountered: