mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: checks on parent visibility instead of filter itself (#6250)
This commit is contained in:
@@ -91,7 +91,14 @@ export default Ember.Mixin.create({
|
|||||||
// next so we are sure it finised expand/collapse
|
// next so we are sure it finised expand/collapse
|
||||||
Ember.run.next(() => {
|
Ember.run.next(() => {
|
||||||
Ember.run.schedule("afterRender", () => {
|
Ember.run.schedule("afterRender", () => {
|
||||||
if (!context.$filterInput() || !context.$filterInput().is(":visible")) {
|
if (
|
||||||
|
!context.$filterInput() ||
|
||||||
|
!context.$filterInput().is(":visible") ||
|
||||||
|
context
|
||||||
|
.$filterInput()
|
||||||
|
.parent()
|
||||||
|
.hasClass("is-hidden")
|
||||||
|
) {
|
||||||
if (context.$header()) {
|
if (context.$header()) {
|
||||||
context.$header().focus();
|
context.$header().focus();
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user