From 8e697d0578a7a3861c49e6a7e144de8e975d798e Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sun, 9 Nov 2025 20:17:13 +0200 Subject: [PATCH] fix(ribbon): not dismissing active tab after change --- apps/client/src/widgets/ribbon/Ribbon.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/client/src/widgets/ribbon/Ribbon.tsx b/apps/client/src/widgets/ribbon/Ribbon.tsx index c3e8089bf..48c3c3f13 100644 --- a/apps/client/src/widgets/ribbon/Ribbon.tsx +++ b/apps/client/src/widgets/ribbon/Ribbon.tsx @@ -46,7 +46,7 @@ export default function Ribbon() { if (!computedTabs) return; const tabToActivate = computedTabs.find(tab => tab.shouldShow && (typeof tab.activate === "boolean" ? tab.activate : tab.activate?.(titleContext))); setActiveTabIndex(tabToActivate?.index); - }, [ note?.noteId ]); + }, [ computedTabs, note?.noteId ]); // Register keyboard shortcuts. const eventsToListenTo = useMemo(() => TAB_CONFIGURATION.filter(config => config.toggleCommand).map(config => config.toggleCommand) as EventNames[], []);