diff --git a/frontend/src/App.svelte b/frontend/src/App.svelte index a84253ab..ba558ffd 100644 --- a/frontend/src/App.svelte +++ b/frontend/src/App.svelte @@ -116,6 +116,7 @@ + diff --git a/frontend/src/Components/Autocomplete.svelte b/frontend/src/Components/Autocomplete.svelte index a54233b6..e2c1eca0 100644 --- a/frontend/src/Components/Autocomplete.svelte +++ b/frontend/src/Components/Autocomplete.svelte @@ -63,6 +63,11 @@ selected = null; } + function onblur(ev){ + candidates = []; + selected = null; + } + async function onkeyup(ev){ if (ignore.includes(ev.key)) return; if (ev.key == 'ArrowDown'){ @@ -145,11 +150,11 @@ - + {#if candidates && candidates.length > 0} -
    +
      {#each candidates as candidate,i} -
    • select(i)} ondblclick={e => select(i)}>{candidate.display}
    • +
    • select(i)} ondblclick={e => select(i)}>{candidate.display}
    • {/each}
    {/if}