File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
frontend/app/view/webview Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -298,6 +298,9 @@ export class WebViewModel implements ViewModel {
298
298
handleNavigate ( url : string ) {
299
299
fireAndForget ( ( ) => ObjectService . UpdateObjectMeta ( WOS . makeORef ( "block" , this . blockId ) , { url } ) ) ;
300
300
globalStore . set ( this . url , url ) ;
301
+ if ( this . searchAtoms ) {
302
+ globalStore . set ( this . searchAtoms . isOpenAtom , false ) ;
303
+ }
301
304
}
302
305
303
306
ensureUrlScheme ( url : string , searchTemplate : string ) {
@@ -547,7 +550,6 @@ const WebView = memo(({ model, onFailLoad }: WebViewProps) => {
547
550
// Search
548
551
const searchProps = useSearch ( model . webviewRef , model ) ;
549
552
const searchVal = useAtomValue < string > ( searchProps . searchAtom ) ;
550
- const isSearchOpen = useAtomValue ( searchProps . isOpenAtom ) ;
551
553
const setSearchIndex = useSetAtom ( searchProps . indexAtom ) ;
552
554
const setNumSearchResults = useSetAtom ( searchProps . numResultsAtom ) ;
553
555
const onSearch = useCallback ( ( search : string ) => {
You can’t perform that action at this time.
0 commit comments