We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0eb9303 + e8a027c commit 7c6239eCopy full SHA for 7c6239e
resources/js/processes/screen-builder/screen.vue
@@ -306,6 +306,10 @@ import formTypes from "./formTypes";
306
},
307
getValidationErrorsForItems(items, page) {
308
const validationErrors = [];
309
+
310
+ if (!Array.isArray(items)) {
311
+ items = [items];
312
+ }
313
314
items.forEach(item => {
315
if (item.container) {
@@ -350,6 +354,9 @@ import formTypes from "./formTypes";
350
354
return item.component === 'FormButton' && item.config.event === 'submit';
351
355
352
356
itemsContainSubmitButton(items) {
357
358
359
353
360
return items.some(item => {
361
return item.container
362
? item.items.some(this.itemsContainSubmitButton)
0 commit comments