mirror of
https://github.com/TriliumNext/Trilium.git
synced 2025-12-10 03:53:37 -06:00
fix(ribbon): not dismissing active tab after change
This commit is contained in:
parent
6f245ec8d5
commit
8e697d0578
@ -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[], []);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user