diff --git a/ts/editor/AddTagBadge.svelte b/ts/editor/AddTagBadge.svelte
index 66bb992da..48f84166a 100644
--- a/ts/editor/AddTagBadge.svelte
+++ b/ts/editor/AddTagBadge.svelte
@@ -16,23 +16,30 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
- (theTagIcon = addTagIcon)}
- on:mouseleave={() => (theTagIcon = tagIcon)}
- on:mount={withSpan(createShortcut)}>{@html theTagIcon}
+
+ (theTagIcon = addTagIcon)}
+ on:mouseleave={() => (theTagIcon = tagIcon)}
+ on:mount={withSpan(createShortcut)}>{@html theTagIcon}
+
diff --git a/ts/editor/TagAutocomplete.svelte b/ts/editor/TagAutocomplete.svelte
index 514380d0c..6a541061a 100644
--- a/ts/editor/TagAutocomplete.svelte
+++ b/ts/editor/TagAutocomplete.svelte
@@ -8,8 +8,8 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
export const suggestions = ["en::idioms", "anki::functionality", "math"];
- const triggerId = "tagLabel" + String(Math.random()).slice(2);
- const triggerClass = "dropdown-toggle";
+ let className: string = "";
+ export { className as class };
let menu: HTMLDivElement;
@@ -33,10 +33,10 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
function updateActiveItem(even: FocusEvent): void {}
-
-
+
+
-
+
{#each suggestions as tag}
{tag}
-
-
+
+
+
- {#each tags as tag, index (tag.id)}
- checkForDuplicateAt(index)}
- on:tagadd={() => insertTagAt(index)}
- on:tagdelete={() => deleteTagAt(index)}
- on:tagjoinprevious={() => joinWithPreviousTag(index)}
- on:tagjoinnext={() => joinWithNextTag(index)}
+ {#each tags as tag, index (tag.id)}
+ checkForDuplicateAt(index)}
+ on:tagadd={() => insertTagAt(index)}
+ on:tagdelete={() => deleteTagAt(index)}
+ on:tagjoinprevious={() => joinWithPreviousTag(index)}
+ on:tagjoinnext={() => joinWithNextTag(index)}
+ />
+ {/each}
+
+
- {/each}
-
-
+
diff --git a/ts/editor/TagInput.svelte b/ts/editor/TagInput.svelte
index 3df9ab513..a39f88448 100644
--- a/ts/editor/TagInput.svelte
+++ b/ts/editor/TagInput.svelte
@@ -96,43 +96,29 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
}
}
- function setTagname({ detail }: CustomEvent): void {
- name = detail.name;
- }
-
onMount(() => dispatch("mount", { input }));
-
-
-
+
+