Skip to content

Commit 01dcddf

Browse files
Merge pull request #1697 from krayin/compose-mail-entry-#1690
[2.0] Issue #1690 fixed.
2 parents 0a14afb + b581d0a commit 01dcddf

File tree

1 file changed

+9
-1
lines changed
  • packages/Webkul/Admin/src/Resources/views/components/form/control-group/controls

1 file changed

+9
-1
lines changed

packages/Webkul/Admin/src/Resources/views/components/form/control-group/controls/tags.blade.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ class="dark:!bg-gray-900"
4444
:placeholder="placeholder"
4545
:label="label"
4646
@keydown.enter.prevent="addTag"
47+
autocomplete="new-email"
48+
@blur="addTag"
4749
/>
4850
</v-field>
4951
@@ -106,7 +108,13 @@ class="mt-1 text-xs italic text-red-600"
106108
return;
107109
}
108110
109-
this.tags.push(this.input.trim());
111+
const tag = this.input.trim();
112+
113+
if (! tag) {
114+
return;
115+
}
116+
117+
this.tags.push(tag);
110118
111119
this.$emit('tags-updated', this.tags);
112120

0 commit comments

Comments
 (0)