Skip to content

Commit 67281f2

Browse files
committed
address feedback
1 parent 8f0977e commit 67281f2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • packages/golden-layout/src/controls

packages/golden-layout/src/controls/Tab.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,9 @@ export default class Tab {
184184
// being erroneously marked as focused if the user's DOM element
185185
// is removed and they click another tab. To prevent this, we
186186
// remove existing "lm_focusin" classes first.
187-
$('lm_focusin').removeClass('lm_focusin');
187+
$('.lm_focusin', this._layoutManager.root.element).removeClass(
188+
'lm_focusin'
189+
);
188190

189191
this.element.addClass('lm_focusin');
190192
}

0 commit comments

Comments
 (0)