FIX: prevents keyboard from appearing on android when expanding

This commit is contained in:
Joffrey JAFFEUX 2018-04-10 16:25:05 +02:00 committed by GitHub
parent 64f2086cca
commit 11c47f57f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ export default Ember.Mixin.create({
// next so we are sure it finised expand/collapse // next so we are sure it finised expand/collapse
Ember.run.next(() => { Ember.run.next(() => {
Ember.run.schedule("afterRender", () => { Ember.run.schedule("afterRender", () => {
if (!context.$filterInput() || !context.$filterInput().is(":visible")) { if ((this.site && this.site.isMobileDevice) || !context.$filterInput() || !context.$filterInput().is(":visible")) {
context.$header().focus(); context.$header().focus();
} else { } else {
context.$filterInput().focus(); context.$filterInput().focus();