Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Commit 003fa8a

Browse files
committed
only blur activeElement if there is one - fixes #332
1 parent d1fcd07 commit 003fa8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ async function navigate(target: Target, id: number): Promise<any> {
298298
await goto(redirect.location, { replaceState: true });
299299
} else {
300300
render(data, nullable_depth, scroll_history[id], token);
301-
document.activeElement.blur();
301+
if (document.activeElement) document.activeElement.blur();
302302
}
303303
}
304304

0 commit comments

Comments
 (0)