Skip to content

Commit 43c6846

Browse files
committed
refac
1 parent ecf3fa2 commit 43c6846

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

src/lib/components/common/Tags/TagInput.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
list="tagOptions"
3636
on:keydown={(event) => {
3737
if (event.key === 'Enter') {
38+
event.preventDefault();
3839
addTagHandler();
3940
}
4041
}}

src/lib/components/common/Tags/TagItem.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
{#if tag}
1414
<Tooltip content={tag.name}>
1515
<button
16+
type="button"
1617
aria-label={$i18n.t('Remove this tag from list')}
1718
class="relative group/tags px-1.5 py-[0.5px] gap-0.5 flex justify-between h-fit max-h-fit w-fit items-center rounded-lg bg-gray-500/20 text-gray-700 dark:text-gray-200 transition cursor-pointer"
1819
on:click={() => {

0 commit comments

Comments
 (0)