fix: done changes suggested by TorstenDittmann

This commit is contained in:
yatharth
2023-02-13 20:31:45 +05:30
parent 24b8e22211
commit 2fa4764c66
+2 -1
View File
@@ -51,6 +51,7 @@
};
const removeValue = (value: string) => {
if (readonly) return;
tags = tags.filter((tag) => tag !== value);
};
@@ -89,7 +90,7 @@
type="button"
class="input-tag-delete-button"
aria-label={`delete ${tag} tag`}
on:click={() => !readonly && removeValue(tag)}>
on:click={() => removeValue(tag)}>
<span class="icon-x" aria-hidden="true" />
</button>
</div>