Skip to content
Permalink
Browse files

FIX: prevents keyboard from appearing on android when expanding

  • Loading branch information
jjaffeux committed Apr 10, 2018
1 parent 64f2086 commit 11c47f57f9458422467da8ba6d690d6a31cfa1c0
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/assets/javascripts/select-kit/mixins/dom-helpers.js.es6
@@ -71,7 +71,7 @@ export default Ember.Mixin.create({
// next so we are sure it finised expand/collapse
Ember.run.next(() => {
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();
} else {
context.$filterInput().focus();

2 comments on commit 11c47f5

@discoursebot

This comment has been minimized.

Copy link

discoursebot replied Apr 10, 2018

This commit has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/android-topic-control-dropdown-activates-keyboard/84219/6

@daath

This comment has been minimized.

Copy link

daath replied Apr 13, 2018

My users wants to thank you for this fix :)

Please sign in to comment.
You can’t perform that action at this time.