Skip to content

Commit c23095d

Browse files
committed
Fixing email tags validation issue.
1 parent 1e4a068 commit c23095d

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ class="flex flex-wrap items-center gap-1"
1818
v-bind="$attrs"
1919
>
2020
<li
21-
class="flex items-center gap-1 rounded-md bg-gray-100 dark:bg-gray-950 ltr:pl-2 rtl:pr-2"
2221
v-for="(tag, index) in tags"
22+
:key="index"
23+
class="flex items-center gap-1 rounded-md bg-gray-100 dark:bg-gray-950 ltr:pl-2 rtl:pr-2"
2324
>
2425
<x-admin::form.control-group.control
2526
type="hidden"
@@ -101,7 +102,7 @@ class="mt-1 text-xs italic text-red-600"
101102
'errors',
102103
],
103104
104-
data: function () {
105+
data() {
105106
return {
106107
tags: this.data ? this.data : [],
107108
@@ -110,7 +111,7 @@ class="mt-1 text-xs italic text-red-600"
110111
},
111112
112113
methods: {
113-
addTag: function() {
114+
addTag() {
114115
if (this.errors['temp-' + this.name]) {
115116
return;
116117
}

packages/Webkul/Admin/src/Resources/views/mail/index.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ class="!font-normal"
279279
<x-admin::form.control-group.controls.tags
280280
name="reply_to"
281281
class="w-[calc(100%-62px)]"
282-
input-rules="email|required"
282+
input-rules="email"
283283
::data="draft.reply_to"
284284
:label="trans('admin::app.mail.index.mail.to')"
285285
:placeholder="trans('admin::app.mail.index.mail.enter-emails')"

0 commit comments

Comments
 (0)