FIX: checks on parent visibility instead of filter itself (#6250)
This commit is contained in:
parent
7aef604f7d
commit
523acfcea4
|
@ -91,7 +91,14 @@ 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 (
|
||||
!context.$filterInput() ||
|
||||
!context.$filterInput().is(":visible") ||
|
||||
context
|
||||
.$filterInput()
|
||||
.parent()
|
||||
.hasClass("is-hidden")
|
||||
) {
|
||||
if (context.$header()) {
|
||||
context.$header().focus();
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue