FIX: checks on parent visibility instead of filter itself (#6250)

This commit is contained in:
Joffrey JAFFEUX 2018-08-09 10:45:53 +02:00 committed by GitHub
parent 7aef604f7d
commit 523acfcea4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -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 {