mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Fixed gh-search-input tests failing on Ember 3.10
This commit is contained in:
parent
cfb54feb15
commit
8aba726bc8
1 changed files with 10 additions and 4 deletions
|
@ -27,7 +27,10 @@ export default Component.extend({
|
|||
},
|
||||
|
||||
resetInput() {
|
||||
this.$('input').val('');
|
||||
let input = this.element && this.element.querySelector('input');
|
||||
if (input) {
|
||||
input.value = '';
|
||||
}
|
||||
},
|
||||
|
||||
handleKeydown(e) {
|
||||
|
@ -41,14 +44,17 @@ export default Component.extend({
|
|||
},
|
||||
|
||||
open() {
|
||||
this.get('select.actions').open();
|
||||
this.select.actions.open();
|
||||
},
|
||||
|
||||
close() {
|
||||
this.get('select.actions').close();
|
||||
this.select.actions.close();
|
||||
},
|
||||
|
||||
_focusInput() {
|
||||
this.$('input')[0].focus();
|
||||
let input = this.element && this.element.querySelector('input');
|
||||
if (input) {
|
||||
input.focus();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue