@optimiser/common 1.0.227 → 1.0.228
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/utility.js +1 -1
- package/package.json +1 -1
package/dist/lib/utility.js
CHANGED
|
@@ -3902,7 +3902,7 @@ function ValidateSanitizeUserInput(inputFields, pageData) {
|
|
|
3902
3902
|
elmValue = inputItem[elm];
|
|
3903
3903
|
if (item.IsRequired == true && item.IsRequired !== undefined) {
|
|
3904
3904
|
// check for required input fileds
|
|
3905
|
-
if (item.UIDataType == 'email' && elmValue != '') {
|
|
3905
|
+
if (elmValue && item.UIDataType == 'email' && elmValue != '' && elmValue != null && elmValue !== 'undefined') {
|
|
3906
3906
|
if (!EmailValidation(elmValue.toString())) {
|
|
3907
3907
|
msg = 'Invalid email format!';
|
|
3908
3908
|
}
|