diff --git a/ts/editor/Tag.svelte b/ts/editor/Tag.svelte
index 1f8331843..d50f7f4b1 100644
--- a/ts/editor/Tag.svelte
+++ b/ts/editor/Tag.svelte
@@ -3,7 +3,8 @@ Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
diff --git a/ts/editor/TagEditor.svelte b/ts/editor/TagEditor.svelte
index 7faeaacae..f62db0f96 100644
--- a/ts/editor/TagEditor.svelte
+++ b/ts/editor/TagEditor.svelte
@@ -16,11 +16,10 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
import { attachId, getName } from "./tags";
export let size = isApplePlatform() ? 1.6 : 2.0;
+ export let tags: TagType[] = [];
export let suggestions = ["en::idioms", "anki::functionality", "math"];
- export let tags: TagType[] = [];
-
export function resetTags(names: string[]): void {
tags = names.map(attachId);
}
@@ -93,7 +92,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
contained
);
if (contained >= 0) {
- tags[contained].blink();
+ tags[contained].flash();
return false;
}
@@ -253,7 +252,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
{:else}
(active = index)}
on:tagdelete={() => {
deleteTagAt(index);
diff --git a/ts/editor/tags.ts b/ts/editor/tags.ts
index dcffe630a..de604cd05 100644
--- a/ts/editor/tags.ts
+++ b/ts/editor/tags.ts
@@ -18,7 +18,7 @@ export function normalizeTagname(tagname: string): string {
export interface Tag {
id: string;
name: string;
- blink: () => void;
+ flash: () => void;
}
const noop = () => {};
@@ -27,7 +27,7 @@ export function attachId(name: string): Tag {
return {
id: Math.random().toString(36).substring(2),
name,
- blink: noop,
+ flash: noop,
};
}