Callback for when the query is an empty string? #1039
-
|
When a user selects one of the options, my code stores its value in an A user trying to deselect this item will instinctively delete the contents of the autocomplete input, which will not clear the value of the Sure, there is an X button that resets the form. I'm already using To meet my users' expectations I intend to detect this condition (empty query string) and manually update the hidden input value. But how? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hi @douglas-legulas, You can use |
Beta Was this translation helpful? Give feedback.


Hi @douglas-legulas,
You can use
onStateChangeto perform logic based on the query. You'll have access to the entire state, including thequery.