Skip to content

Commit

Permalink
possibly fixes #15
Browse files Browse the repository at this point in the history
The error will have to do with PR #14. As I am still very limited in time, I gave it a shot with this fix, please try if it works now for you.
Otherwise maybe @wmattei could have a look at it? Also a repro would help, as I cannot reproduce it here.
Cheers!
  • Loading branch information
Tom Müller committed Sep 13, 2019
1 parent 08e1bae commit e8ed853
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ng-mat-search-bar",
"version": "3.2.0",
"version": "3.2.1",
"license": "MIT",
"scripts": {
"build": "ng build",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</mat-form-field>

<!-- FORM CONTROL WAY -->
<mat-form-field class="mat-search_field" [@slideInOut]="searchVisible">
<mat-form-field *ngIf="formControl" class="mat-search_field" [@slideInOut]="searchVisible">
<input #input matInput type="text" placeholder="" [formControl]="formControl" (blur)="onBlurring(input.value)"
(keyup.enter)="onEnterring(input.value)" (focus)="onFocussing(input.value)" />
</mat-form-field>
Expand All @@ -13,4 +13,4 @@
<span class="mat-search_icons" [class.mat-search_icons--active]="searchVisible">
<mat-icon class="mat-search_icon-close" (click)="close()" matRipple>close</mat-icon>
<mat-icon class="mat-search_icon-search" (click)="open()" matRipple>search</mat-icon>
</span>
</span>

0 comments on commit e8ed853

Please sign in to comment.