From ba64f50593eb38986ee84a1c58d7b6500a849a86 Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Mon, 28 Jun 2021 02:08:30 +0200 Subject: [PATCH] Make Autocomplete dismount along with TagInput on blur --- ts/editor/TagEditor.svelte | 48 +++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/ts/editor/TagEditor.svelte b/ts/editor/TagEditor.svelte index 887edb64f..993a1fc0d 100644 --- a/ts/editor/TagEditor.svelte +++ b/ts/editor/TagEditor.svelte @@ -219,16 +219,16 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html - - {#each tags as tag, index (tag.id)} - {#if index === active} + {#each tags as tag, index (tag.id)} + {#if index === active} + - {:else} - (active = index)} - on:tagdelete={() => deleteTag(index)} - /> - {/if} - {/each} + + {:else} + (active = index)} + on:tagdelete={() => deleteTag(index)} + /> + {/if} + {/each} -
- +
a, aab, an, ac: {active}