@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/dist/index.esm.js CHANGED
@@ -849,6 +849,7 @@ const inputValidationMixin = (superclass) =>
849
849
  badInput,
850
850
  customError,
851
851
  } = flags;
852
+
852
853
  switch (true) {
853
854
  case valueMissing:
854
855
  return (
@@ -861,7 +862,9 @@ const inputValidationMixin = (superclass) =>
861
862
  );
862
863
  case typeMismatch:
863
864
  return (
864
- this.getAttribute(errorAttributes.typeMismatch) || this.defaultErrorMsgTypeMismatch
865
+ this.getAttribute(errorAttributes.typeMismatch) ||
866
+ this.getAttribute(errorAttributes.patternMismatch) ||
867
+ this.defaultErrorMsgTypeMismatch
865
868
  );
866
869
  case tooShort:
867
870
  return this.getAttribute(errorAttributes.tooShort) || this.defaultErrorMsgTooShort;