Skip to content

Commit

Permalink
Close the toggle menu when clicking on the flip board button.
Browse files Browse the repository at this point in the history
  • Loading branch information
johndoknjas committed Jan 17, 2025
1 parent 6325b75 commit fce1e33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions ui/analyse/src/ctrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ export default class AnalyseCtrl {
this.explorer.onFlip();
this.onChange();
this.persistence?.save(true);
this.actionMenu.toggle();
this.redraw();
};

Expand Down
1 change: 1 addition & 0 deletions ui/round/src/ctrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ export default class RoundController implements MoveRootCtrl {
orientation: boardOrientation(this.data, this.flip),
});
pubsub.emit('flip', this.flip);
this.menu.toggle();
this.redraw();
};

Expand Down

0 comments on commit fce1e33

Please sign in to comment.