fix: restore focus after preview exit

This commit is contained in:
Thomas Camlong committed 2026-08-09 18:06:26 +02:00
1 parent 889d732e03
commit b8bdbc2f3e
1 file changed
+1 -1
@@ -127,7 +127,7 @@ export const BoardAdvancedFocusProvider = ({ children }: PropsWithChildren) => {
const current = activeRef.current;
if (current?.activation !== "preview" || current.itemId !== itemId) return;
if (hoveredRef.current?.itemId === itemId) hoveredRef.current = null;
close(false);
close(current.restorePreviewFocus);
}, POINTER_TRANSITION_GRACE_MS);
},
[close],