FIX: makes sure keyboard is disabled on mobile

This commit is contained in:
Joffrey JAFFEUX 2017-11-22 12:33:07 +01:00 committed by GitHub
parent a3b511f4f5
commit 5a992fe5e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,7 +71,7 @@ export default Ember.Component.extend(UtilsMixin, PluginApiMixin, DomHelpersMixi
this.set("rowComponentOptions", Ember.Object.create()); this.set("rowComponentOptions", Ember.Object.create());
this.set("computedContent", []); this.set("computedContent", []);
if ($(window).outerWidth(false) <= 420) { if ((this.site && this.site.isMobileDevice) || $(window).outerWidth(false) <= 420) {
this.setProperties({ filterable: false, autoFilterable: false }); this.setProperties({ filterable: false, autoFilterable: false });
} }
}, },