@descope/web-components-ui 1.0.366 → 1.0.368

Sign up to get free protection for your applications and to get access to all the features.
@@ -2070,6 +2070,7 @@ const inputValidationMixin = (superclass) =>
2070
2070
  badInput,
2071
2071
  customError,
2072
2072
  } = flags;
2073
+
2073
2074
  switch (true) {
2074
2075
  case valueMissing:
2075
2076
  return (
@@ -2082,7 +2083,9 @@ const inputValidationMixin = (superclass) =>
2082
2083
  );
2083
2084
  case typeMismatch:
2084
2085
  return (
2085
- this.getAttribute(errorAttributes.typeMismatch) || this.defaultErrorMsgTypeMismatch
2086
+ this.getAttribute(errorAttributes.typeMismatch) ||
2087
+ this.getAttribute(errorAttributes.patternMismatch) ||
2088
+ this.defaultErrorMsgTypeMismatch
2086
2089
  );
2087
2090
  case tooShort:
2088
2091
  return this.getAttribute(errorAttributes.tooShort) || this.defaultErrorMsgTooShort;