UX: revert full page search focus on magnifying glass click
This commit is contained in:
parent
c756ddbc2e
commit
665a87a32f
|
@ -21,13 +21,7 @@ const HeaderController = Ember.Controller.extend({
|
|||
|
||||
actions: {
|
||||
toggleSearch() {
|
||||
// there may be a cleaner way, but this is so trivial code wise
|
||||
const $fullpageSearch = $('input.full-page-search');
|
||||
if ($fullpageSearch.length === 1) {
|
||||
$fullpageSearch.focus().select();
|
||||
} else {
|
||||
this.toggleProperty('searchVisible');
|
||||
}
|
||||
this.toggleProperty('searchVisible');
|
||||
},
|
||||
showUserMenu() {
|
||||
if (!this.get('userMenuVisible')) {
|
||||
|
|
Loading…
Reference in New Issue