FIX: avoids hidding mobile keyboard on each keystroke

This commit is contained in:
Joffrey JAFFEUX 2018-05-28 16:18:25 +02:00 committed by GitHub
parent a7be1ddf4f
commit 4b9c713581
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -334,7 +334,10 @@ export default Ember.Component.extend(UtilsMixin, PluginApiMixin, DomHelpersMixi
},
stopLoading() {
this.focus();
if (this.site && !this.site.isMobileDevice) {
this.focusFilterOrHeader();
}
this.set("isLoading", false);
this._boundaryActionHandler("onStopLoading");
},

View File

@ -28,7 +28,6 @@ export default Ember.Mixin.create({
})
.finally(() => {
self.stopLoading();
self.focusFilterOrHeader();
});
},