I am trying to build sample app in angular5. Code sample is as below. Issue is after clicking on any table row, it is firing only textbox blur event and table row click event is not fired. My requirement is to get table row click event fired first and then textbox blur event. Any suggestions?
test.component.html
<div class="container">
<h1>Angular events</h1>
<hr />
<div class="row">
<div class="col-xl">
<input #inputText type="text" (keyup)="filterList(inputText.value)" (blur)="hideList()" />
<table class="table" *ngIf="showList">
<thead>
<tr>
<th scope="col">name</th>
<th scope="col">date</th>
<th scope="col">time</th>
<th scope="col">price</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let event of gridEventList" (click)="selectItem($event)">
<td>{{event.name}}</td>
<td>{{event.date}}</td>
<td>{{event.time}}</td>
<td>{{event.price}}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
test.component.ts
filterList(input:string) {
console.log("filter list")
}
selectItem(event){
console.log("select event row values")
}
hideList(){
console.log("text lost focus")
}