We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1cc694 commit 560aeccCopy full SHA for 560aecc
1 file changed
src/components/SearchUI/index.tsx
@@ -81,8 +81,10 @@ const Search = ({
81
const handleChange = (hit: Hit) => {
82
if (!hit) return
83
setSearchOpen(false)
84
- navigate(`${hit.fields?.slug || `/${hit.slug}`}`, { state: { newWindow: true } })
85
onChange?.()
+ setTimeout(() => {
86
+ navigate(`${hit.fields?.slug || `/${hit.slug}`}`, { state: { newWindow: true } })
87
+ }, 0)
88
}
89
90
const handleKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {
0 commit comments