mirror of
https://github.com/docmost/docmost.git
synced 2026-09-01 03:15:32 +08:00
jump to search init
This commit is contained in:
+3
-1
@@ -181,7 +181,9 @@ function SearchAndReplaceDialog({ editor, editable = true }: PageFindDialogDialo
|
||||
|
||||
const location = useLocation();
|
||||
useEffect(() => {
|
||||
closeDialog();
|
||||
if(pageFindState.isOpen){
|
||||
closeDialog();
|
||||
}
|
||||
}, [location]);
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user