We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70dc159 commit 15a77afCopy full SHA for 15a77af
packages/site-kit/src/lib/search/SearchBox.svelte
@@ -74,7 +74,7 @@ It appears when the user clicks on the `Search` component or presses the corresp
74
last_scroll_position = null;
75
document.body.style.position = '';
76
document.body.tabIndex = -1;
77
- document.body.focus();
+ (document.activeElement as HTMLElement)?.blur();
78
document.body.removeAttribute('tabindex');
79
window.scrollTo(0, scroll);
80
0 commit comments