@descope/web-components-ui 1.0.366 → 1.0.367
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -84,6 +84,7 @@ export const inputValidationMixin = (superclass) =>
|
|
84
84
|
badInput,
|
85
85
|
customError,
|
86
86
|
} = flags;
|
87
|
+
|
87
88
|
switch (true) {
|
88
89
|
case valueMissing:
|
89
90
|
return (
|
@@ -96,7 +97,9 @@ export const inputValidationMixin = (superclass) =>
|
|
96
97
|
);
|
97
98
|
case typeMismatch:
|
98
99
|
return (
|
99
|
-
this.getAttribute(errorAttributes.typeMismatch) ||
|
100
|
+
this.getAttribute(errorAttributes.typeMismatch) ||
|
101
|
+
this.getAttribute(errorAttributes.patternMismatch) ||
|
102
|
+
this.defaultErrorMsgTypeMismatch
|
100
103
|
);
|
101
104
|
case tooShort:
|
102
105
|
return this.getAttribute(errorAttributes.tooShort) || this.defaultErrorMsgTooShort;
|