-
Notifications
You must be signed in to change notification settings - Fork 395
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
How to stablish the value on open DropdownList #1146
Comments
I think this is the same issue but has no answers: #1117 |
That's not how a drop-down works generally, the text inputs is just for filtering it's not the "value" of the drop-down. The filter input is empty when you focus the input. If you want to control what the starting search term is you can control and provide the |
Thanks, that is what I was looking for. A little bit of state management and I've been able to accomplish what I needed. For those in the same situation, What I've done is maintain the searchTerm in a state variable, and update it on onSearch. Also added a useEffect when the DropdownList is open to establish again the filter, as when the DropdownList closes it sets the filter to empty string.
|
Hi,
Currently when a value is selected, and you click the DropdownList, the current value is shown but the cursor is at the beginning of the text, so if you write you start writing a new word and you loose the current value.
I want the cursor to be at the end of the current value when you click the DropdownList, and as you write, the written text is appended to the current value at the end, just like a normal input text works.
How can I accomplish this?
Thanks
The text was updated successfully, but these errors were encountered: