Skip to content
Snippets Groups Projects
Commit 959f7289 authored by Eugen Ciur's avatar Eugen Ciur
Browse files

rename doSearch to keyUp

parent 289318e5
Branches
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
</button> </button>
<Input <Input
@value={{this.query}} @value={{this.query}}
{{on "input" this.doSearch}} {{on "keyup" this.onKeyup}}
class="form-control" /> class="form-control" />
{{#if this.autocomplete_items}} {{#if this.autocomplete_items}}
<button <button
... ...
......
...@@ -12,7 +12,7 @@ export default class SearchComponent extends Component { ...@@ -12,7 +12,7 @@ export default class SearchComponent extends Component {
@tracked autocomplete_items = A([]); @tracked autocomplete_items = A([]);
@action @action
async doSearch() { async onKeyup() {
let response = await this.requests.search(this.query); let response = await this.requests.search(this.query);
let data = await response.json(); let data = await response.json();
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment