@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope/web-components-ui",
3
- "version": "1.0.366",
3
+ "version": "1.0.367",
4
4
  "description": "",
5
5
  "main": "dist/cjs/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -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) || this.defaultErrorMsgTypeMismatch
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;