Skip to content

Commit

Permalink
set activeIndex to -1 if mousedown not on item
Browse files Browse the repository at this point in the history
  • Loading branch information
gabalafou committed Jul 7, 2023
1 parent dccee2e commit 4274b02
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/widgets/src/menubar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,7 @@ export class MenuBar extends Widget {
// If the press was not on an item, close the child menu.
if (index === -1) {
this._closeChildMenu();
this.activeIndex = -1;
return;
}

Expand Down

0 comments on commit 4274b02

Please sign in to comment.