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
Expose an event that gets fired when the user closes an autocomplete without selecting an option
What is the expected behavior?
User clicks on Autocomplete and writes some text but doesn't select an option and then clicks somewhere to close the autocomplete. The written text should be replaced by null.
What is the current behavior?
What the user wrote remains in the autocomplete / form control.
What is the use-case or motivation for changing an existing behavior?
I have autocompletes for different enum-type structures that I've set up. I would like to make sure that if the user doesn't select an option I set the value to null instead of leaving invalid text in the form control value. I tried implementing this with a blur handler on the input but that gets fired even when the user selects an option from the list which is a show stopper.
The text was updated successfully, but these errors were encountered:
Feature request / discussion
Expose an event that gets fired when the user closes an autocomplete without selecting an option
What is the expected behavior?
User clicks on Autocomplete and writes some text but doesn't select an option and then clicks somewhere to close the autocomplete. The written text should be replaced by
null
.What is the current behavior?
What the user wrote remains in the autocomplete / form control.
What is the use-case or motivation for changing an existing behavior?
I have autocompletes for different enum-type structures that I've set up. I would like to make sure that if the user doesn't select an option I set the value to
null
instead of leaving invalid text in the form control value. I tried implementing this with ablur
handler on the input but that gets fired even when the user selects an option from the list which is a show stopper.The text was updated successfully, but these errors were encountered: