From fce1e33347efbcee84b4399e6cc2051950552c42 Mon Sep 17 00:00:00 2001 From: johndoknjas Date: Fri, 17 Jan 2025 09:10:17 -0800 Subject: [PATCH] Close the toggle menu when clicking on the flip board button. --- ui/analyse/src/ctrl.ts | 1 + ui/round/src/ctrl.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/ui/analyse/src/ctrl.ts b/ui/analyse/src/ctrl.ts index 5fcf46c2549b5..3bb04b071fad3 100644 --- a/ui/analyse/src/ctrl.ts +++ b/ui/analyse/src/ctrl.ts @@ -274,6 +274,7 @@ export default class AnalyseCtrl { this.explorer.onFlip(); this.onChange(); this.persistence?.save(true); + this.actionMenu.toggle(); this.redraw(); }; diff --git a/ui/round/src/ctrl.ts b/ui/round/src/ctrl.ts index 9e52423fa6152..abeab4b0e769a 100644 --- a/ui/round/src/ctrl.ts +++ b/ui/round/src/ctrl.ts @@ -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(); };