mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 19:21:50 +00:00
[Svelte]: Hide suggestion UI after query was submitted (#62574)
This commit is contained in:
parent
d24a14f34d
commit
7f9549efbf
@ -197,6 +197,11 @@
|
||||
// this, SvelteKit will not re-run the loader because the URL hasn't changed.
|
||||
await invalidate(`search:${url}`)
|
||||
void goto(url)
|
||||
|
||||
// Reset interaction state since after success submit we should hide
|
||||
// suggestions UI but still keep focus on input, after user interacts with
|
||||
// search input again we show suggestion panel
|
||||
userHasInteracted = false
|
||||
}
|
||||
|
||||
async function handleSubmit(event: Event) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user