fix: Expand sidebar items on shared document on activation

This commit is contained in:
Tom Moor
2023-04-08 14:21:25 -04:00
parent 64ed25c1a2
commit 8324b03938

View File

@@ -54,6 +54,12 @@ function DocumentLink(
}
}, [showChildren]);
React.useEffect(() => {
if (isActiveDocument) {
setExpanded(true);
}
}, [isActiveDocument]);
const handleDisclosureClick = React.useCallback(
(ev: React.SyntheticEvent) => {
ev.preventDefault();