@telefonica/mistica 10.22.0 → 10.22.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [10.22.1](https://github.com/Telefonica/mistica-web/compare/v10.22.0...v10.22.1) (2022-02-03)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **Form fields:** use rawValue to check if a form field is empty ([#408](https://github.com/Telefonica/mistica-web/issues/408)) ([50a5d37](https://github.com/Telefonica/mistica-web/commit/50a5d37179903ed69f1aa33ac6b7e5d6b1f10a6f))
7
+
1
8
  # [10.22.0](https://github.com/Telefonica/mistica-web/compare/v10.21.0...v10.22.0) (2022-02-02)
2
9
 
3
10
 
package/dist/form.js CHANGED
@@ -182,7 +182,7 @@ var Form = function Form(param) {
182
182
  if (input.disabled) {
183
183
  continue;
184
184
  }
185
- if (input.required && !input.value.trim()) {
185
+ if (input.required && !rawValues[name].trim()) {
186
186
  errors[name] = texts.formFieldErrorIsMandatory;
187
187
  } else {
188
188
  var error = validator === null || validator === void 0 ? void 0 : validator(values[name], rawValues[name]);
@@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
5
  exports.PACKAGE_VERSION = void 0;
6
- var PACKAGE_VERSION = '10.22.0';
6
+ var PACKAGE_VERSION = '10.22.1';
7
7
  exports.PACKAGE_VERSION = PACKAGE_VERSION;
package/dist-es/form.js CHANGED
@@ -146,7 +146,7 @@ var Form = function(param) {
146
146
  if (input.disabled) {
147
147
  continue;
148
148
  }
149
- if (input.required && !input.value.trim()) {
149
+ if (input.required && !rawValues[name].trim()) {
150
150
  errors[name] = texts.formFieldErrorIsMandatory;
151
151
  } else {
152
152
  var error = validator === null || validator === void 0 ? void 0 : validator(values[name], rawValues[name]);
@@ -1,2 +1,2 @@
1
1
  // DO NOT EDIT THIS FILE. It's autogenerated by set-version.js
2
- export var PACKAGE_VERSION = '10.22.0';
2
+ export var PACKAGE_VERSION = '10.22.1';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telefonica/mistica",
3
- "version": "10.22.0",
3
+ "version": "10.22.1",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",