Feature request
To have a small button at the end of the input element (maybe a small 'x') that clears the input and show all the options in the dropdown panel again.
To improve UX. Without a button to clean the input, a user have to focus on the input element and clear all the text manually. The feature requested could save the user effort in populating the full option list again after entering some filtered text.
Check the Input with a clear button example on https://material.angular.io/components/input/examples
Closing since this is already possible with the current APIs.
@pfeigl thanks. But then when ones click on the button to clear the input, the drop down list does not appear because my filter function was not triggered.
I was using userForm.controls['timeZone'].patchValue('', {emitEvent: true}) inside the button's (click) event
Sorry, I was suppose to set the value to null instead of empty string. Thanks again for the help :)
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
_This action has been performed automatically by a bot._
Most helpful comment
@pfeigl thanks. But then when ones click on the button to clear the input, the drop down list does not appear because my filter function was not triggered.
I was using
userForm.controls['timeZone'].patchValue('', {emitEvent: true})inside the button's(click)event