mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 19:39:30 +08:00
FIX: prevents keyboard from appearing on android when expanding
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user