From bfcf8ed61bebba6be3082507dafa6766024ddf3a Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Thu, 9 Aug 2018 14:23:09 +0200 Subject: [PATCH] FIX: prevents focus of input on mobile (#6251) --- app/assets/javascripts/select-kit/mixins/dom-helpers.js.es6 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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(); + } } }); });