@@ -450,7 +450,7 @@ export default {
saveProduct() {
this.submitted = true;
- if (this.product.name.trim()) {
+ if (this.product?.name?.trim()) {
if (this.product.id) {
this.product.inventoryStatus = this.product.inventoryStatus.value ? this.product.inventoryStatus.value: this.product.inventoryStatus;
this.products[this.findIndexById(this.product.id)] = this.product;
@@ -608,7 +608,7 @@ export default {
@@ -740,7 +740,7 @@ const hideDialog = () => {
const saveProduct = () => {
submitted.value = true;
- if (product.value.name.trim()) {
+ if (product?.value.name?.trim()) {
if (product.value.id) {
product.value.inventoryStatus = product.value.inventoryStatus.value ? product.value.inventoryStatus.value : product.value.inventoryStatus;
products.value[findIndexById(product.value.id)] = product.value;
@@ -864,7 +864,7 @@ const getStatusLabel = (status) => {
saveProduct() {
this.submitted = true;
- if (this.product.name.trim()) {
+ if (this.product?.name?.trim()) {
if (this.product.id) {
this.product.inventoryStatus = this.product.inventoryStatus.value ? this.product.inventoryStatus.value : this.product.inventoryStatus;
this.products[this.findIndexById(this.product.id)] = this.product;
diff --git a/doc/inputmask/InvalidDoc.vue b/doc/inputmask/InvalidDoc.vue
index 1e39fe558..6df8082f3 100644
--- a/doc/inputmask/InvalidDoc.vue
+++ b/doc/inputmask/InvalidDoc.vue
@@ -3,7 +3,7 @@
Invalid state is displayed using the invalid prop to indicate a failed validation. You can use this style when integrating with form validation libraries.
-
+
@@ -15,12 +15,12 @@ export default {
value: '',
code: {
basic: `
-
+
`,
options: `
-
+
@@ -33,12 +33,12 @@ export default {
}
}
<\/script>
-
+
`,
composition: `
-
+
diff --git a/doc/multiselect/InvalidDoc.vue b/doc/multiselect/InvalidDoc.vue
index efb8d4117..d93c0eb96 100644
--- a/doc/multiselect/InvalidDoc.vue
+++ b/doc/multiselect/InvalidDoc.vue
@@ -3,7 +3,7 @@
Invalid state is displayed using the invalid prop to indicate a failed validation. You can use this style when integrating with form validation libraries.
-
+
@@ -23,13 +23,13 @@ export default {
code: {
basic: `
+ :maxSelectedLabels="3" invalid class="w-full md:w-20rem" />
`,
options: `
-
+
@@ -54,7 +54,7 @@ export default {
+ :maxSelectedLabels="3" invalid class="w-full md:w-20rem" />
diff --git a/doc/selectbutton/InvalidDoc.vue b/doc/selectbutton/InvalidDoc.vue
index 7b699e803..ebd5cb186 100644
--- a/doc/selectbutton/InvalidDoc.vue
+++ b/doc/selectbutton/InvalidDoc.vue
@@ -3,7 +3,7 @@
Invalid state is displayed using the invalid prop to indicate a failed validation. You can use this style when integrating with form validation libraries.
-
+
@@ -16,12 +16,12 @@ export default {
options: ['One-Way', 'Return'],
code: {
basic: `
-
+
`,
options: `
-
+
@@ -39,7 +39,7 @@ export default {
composition: `
-
+
diff --git a/pages/templates/index.vue b/pages/templates/index.vue
index a09256dd0..8f9aec0e8 100644
--- a/pages/templates/index.vue
+++ b/pages/templates/index.vue
@@ -126,51 +126,6 @@