diff --git a/doc/datatable/samples/ProductsDoc.vue b/doc/datatable/samples/ProductsDoc.vue index 731a7a8da..f56e1c87a 100644 --- a/doc/datatable/samples/ProductsDoc.vue +++ b/doc/datatable/samples/ProductsDoc.vue @@ -78,7 +78,7 @@
- + Name is required.
@@ -317,7 +317,7 @@ export default {
- + Name is required.
@@ -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 {
- + Name is required.
@@ -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 { 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: `