You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[x ] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://forum.primefaces.org/viewforum.php?f=57
Current behavior
Editable dropdown content does not reflect the value of the input
Expected behavior
Editable dropdown text should reflect input value
Minimal reproduction of the problem with instructions
I created regular controlled input using Dropdown component with editable option enabled
Dropdown value depends on container state and it gets updated onChange.
I noticed a problem, when I added filtering to the dropdown value before setting container state (i filtered characters other than numbers).
Then, when I type in editable dropdown some numbers and letters i can still see all text, while the value property of input is already filtered and shows only numbers as expected.
It seems like the text content of dropdown is not bind to it's value.
Tested with sample component:
I thought that changing defaultValue to value on editable dropdown input will help, but then there are errors regarding controlled / uncontrolled input. So no quick solution so far. Please take a look on that issue
I'm submitting a ... (check one with "x")
Current behavior
Editable dropdown content does not reflect the value of the input
Expected behavior
Editable dropdown text should reflect input value
Minimal reproduction of the problem with instructions
I created regular controlled input using Dropdown component with editable option enabled
Dropdown value depends on container state and it gets updated onChange.
I noticed a problem, when I added filtering to the dropdown value before setting container state (i filtered characters other than numbers).
Then, when I type in editable dropdown some numbers and letters i can still see all text, while the value property of input is already filtered and shows only numbers as expected.
It seems like the text content of dropdown is not bind to it's value.
Tested with sample component:
On every input change - value of the input is being updated to 'test-value', but text visible in input is whatever you type in.
React version:
16.2.0
PrimeReact version:
1.5.1
Browser:
All
The text was updated successfully, but these errors were encountered: