fixed search field

master
Max 5 years ago
parent ce072d41b1
commit 1c096cd655

@ -3,8 +3,11 @@
<mat-card >
<mat-card-content>
<mat-form-field id="input">
<textarea matInput #searchWord type="search" mat-autosize="false" matAutosizeMaxRows="1" placeholder="search something"
[ngModel]="searchWord"
<textarea matInput #searchWord type="search"
mat-autosize="false"
matAutosizeMaxRows="1"
placeholder="search something"
[ngModel]="searchWord.value"
(ngModelChange)="search(searchWord.value)"></textarea>
<button mat-button matSuffix mat-icon-button>
<mat-icon>search </mat-icon>

@ -11,7 +11,7 @@ import { Router } from '@angular/router';
styleUrls: ['./search.component.sass']
})
export class SearchComponent implements OnInit {
searchValue: string;
searchValue = ' ';
category = 'username';
foundUsers: Array<User>;

@ -1,4 +1,5 @@
<mat-tab-group id="tab-group" selectedIndex="0" mat-stretch-tabs>
<div id="content" fxShow="true" fxHide.lt-md="true">
<mat-tab-group selectedIndex="0" mat-stretch-tabs>
<mat-tab>
<ng-template mat-tab-label>
<mat-icon>people</mat-icon>
@ -12,6 +13,11 @@
</ng-template>
<home-search class="tab-content"></home-search>
</mat-tab>
</mat-tab-group>
</mat-tab-group>
</div>
<div fxShow="true" fxHide.gt-sm="true">
<social-friends id="friendscontainer"></social-friends>
<social-groups id="groupscontainer"></social-groups>
</div>

Loading…
Cancel
Save