From cb8979d97dd2349cf71d18568abe64dd4f1f8537 Mon Sep 17 00:00:00 2001 From: Dusan Vuckovic Date: Fri, 31 Dec 2021 10:35:55 +0000 Subject: [PATCH 1/2] Fixed #113: Impossible to turn off validation error alert. --- src/installer.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/installer.js b/src/installer.js index 7d0b208f..807eccbf 100644 --- a/src/installer.js +++ b/src/installer.js @@ -52,7 +52,9 @@ const VueFormBuilderInstaller = function( } // show alert or not? - formDI.validationErrorShowAlert = properties.validationErrorShowAlert || true + formDI.validationErrorShowAlert = typeof properties.validationErrorShowAlert !== 'undefined' + ? Boolean(properties.validationErrorShowAlert) + : true formDI.validationErrorAlertText = properties.validationErrorAlertText // disable control? From 2a56bb7b583e10404e358b2a54acf07b09b2903c Mon Sep 17 00:00:00 2001 From: Dusan Vuckovic Date: Fri, 31 Dec 2021 10:40:10 +0000 Subject: [PATCH 2/2] Tidied. --- src/installer.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/installer.js b/src/installer.js index 807eccbf..0f8aec12 100644 --- a/src/installer.js +++ b/src/installer.js @@ -52,9 +52,8 @@ const VueFormBuilderInstaller = function( } // show alert or not? - formDI.validationErrorShowAlert = typeof properties.validationErrorShowAlert !== 'undefined' - ? Boolean(properties.validationErrorShowAlert) - : true + formDI.validationErrorShowAlert = typeof properties.validationErrorShowAlert !== 'undefined' ? + Boolean(properties.validationErrorShowAlert) : true; formDI.validationErrorAlertText = properties.validationErrorAlertText // disable control?