Skip to content
This repository was archived by the owner on Feb 5, 2022. It is now read-only.

Commit fbbda35

Browse files
committed
fix(search-results): remove onsearch, add import
1 parent 80ea34c commit fbbda35

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/components/app-search-results/app-search-results.tsx

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, h, State, EventEmitter } from '@stencil/core';
1+
import { Component, h, State, Event, EventEmitter } from '@stencil/core';
22
import { BlogPost } from '../../model/blog-post.model';
33
import { BlogMeta } from '../../model/blog-meta.model';
44
import * as Fetch from '../../shared/fetch-handler';
@@ -77,14 +77,7 @@ export class AppSearchResults {
7777
<span class="blog-search-icon">
7878
<span class="fa fa-search" />
7979
</span>
80-
<input
81-
id="blog-search"
82-
type="search"
83-
class="blog-search-input"
84-
placeholder="Search"
85-
onKeyUp={e => this.handleSearch(e.target['value'])}
86-
onSearch={e => this.handleSearch(e.target['value'])}
87-
/>
80+
<input id="blog-search" type="search" class="blog-search-input" placeholder="Search" onKeyUp={e => this.handleSearch(e.target['value'])} />
8881
<span class="blog-close-icon" onClick={() => this.handleClose(false)}>
8982
<span class="far fa-times-circle" />
9083
</span>

0 commit comments

Comments
 (0)