Skip to content

A platform for community discussion. Free, open, simple.

FIX: prevents focus of input on mobile (#6251)

Joffrey JAFFEUXbfcf8ed61beb
diff --git a/app/assets/javascripts/select-kit/mixins/dom-helpers.js.es6 b/app/assets/javascripts/select-kit/mixins/dom-helpers.js.es6
index 13490bc91ab..e805efe162c 100644
--- a/app/assets/javascripts/select-kit/mixins/dom-helpers.js.es6
+++ b/app/assets/javascripts/select-kit/mixins/dom-helpers.js.es6
@@ -105,7 +105,11 @@ export default Ember.Mixin.create({
$(context.element).focus();
}
} else {
- context.$filterInput().focus();
+ if (this.site && this.site.isMobileDevice) {
+ this.expand();
+ } else {
+ context.$filterInput().focus();
+ }
}
});
});