There was an error while loading. Please reload this page.
1 parent 94022b0 commit 4761d67Copy full SHA for 4761d67
src/js/validityState-polyfill.js
@@ -93,6 +93,11 @@
93
// Add valid property to validity object
94
checkValidity.valid = valid;
95
96
+// Assume a custom error if there is a validation message present but all the other checks returned valid
97
+if (checkValidity.valid && field.validationMessage !== '') {
98
+checkValidity.customError = true
99
+}
100
+
101
// Return object
102
return checkValidity;
103
0 commit comments