Skip to content

Commit

Permalink
Hidden tabs can no longer be clicked
Browse files Browse the repository at this point in the history
Fixes #5199 and #6100

Signed-off-by: Andrew Carlotti <andrew.carlotti@arm.com>
  • Loading branch information
andrewcarlotti authored and paul-marechal committed Feb 25, 2021
1 parent 016ebeb commit 88f8757
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/browser/shell/tab-bar-toolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export class TabBarToolbar extends ReactWidget {
}

shouldHandleMouseEvent(event: MouseEvent): boolean {
return event.target instanceof Element && (!!this.inline.get(event.target.id) || event.target.id === '__more__');
return event.target instanceof Element && this.node.contains(event.target);
}

protected commandIsEnabled(command: string): boolean {
Expand Down

0 comments on commit 88f8757

Please sign in to comment.