tommueller / ng-mat-search-bar

An Angular 2+ component for an expandable search-icon.
MIT License
37 stars 9 forks source link

Reset the value of search bar after onEnter #22

Closed 1ycx closed 4 years ago

1ycx commented 4 years ago
<mat-search-bar [formControl]="control" 
    (onEnter)="handleSearch($event); search.value = ''; search.close()" 
    #search>
</mat-search-bar>

#localReference.value = "" does not reset the value. Any help ?

tommueller commented 4 years ago

Dear @Kogam22,

first of all: please use platforms like stackoverflow for questions of usage. Issues here reserved for bugs / feature requests etc. pp.

As for your question, I cannot replicate your issue: https://stackblitz.com/edit/angular-7lp5nq

I will close this, if there are still problems with this for you, please use a suitable platform.

Thank you!