Skip to content

Commit e8ed853

Browse files
author
Tom Müller
committed
possibly fixes #15
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!
1 parent 08e1bae commit e8ed853

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ng-mat-search-bar",
3-
"version": "3.2.0",
3+
"version": "3.2.1",
44
"license": "MIT",
55
"scripts": {
66
"build": "ng build",

src/app/ng-mat-search-bar/mat-search-bar/mat-search-bar.component.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
</mat-form-field>
55

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

0 commit comments

Comments
 (0)