@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 +7 -0
- package/dist/form.js +1 -1
- package/dist/package-version.js +1 -1
- package/dist-es/form.js +1 -1
- package/dist-es/package-version.js +1 -1
- package/package.json +1 -1
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 && !
|
|
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]);
|
package/dist/package-version.js
CHANGED
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 && !
|
|
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.
|
|
2
|
+
export var PACKAGE_VERSION = '10.22.1';
|