diff --git a/CHANGELOG.md b/CHANGELOG.md index 90d7c0879..5c9ca96ce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,28 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### [Fixed] ### [Security] +--- +## [v3.14.2](https://github.com/AgeOfLearning/aofl/compare/v3.14.1...v3.14.2) - 2024-07-29 + +### [Added] +### [Changed] + - @aofl/form-validate - allow zero value in isRequired +### [Deprecated] +### [Removed] +### [Fixed] +### [Security] + +--- +## [v3.14.1](https://github.com/AgeOfLearning/aofl/compare/v3.14.0...v3.14.1) - 2022-03-17 + +### [Added] +### [Changed] + - @aofl/unit-testing-plugin - update wdio dependencies +### [Deprecated] +### [Removed] +### [Fixed] +### [Security] + --- ## [v3.14.0](https://github.com/AgeOfLearning/aofl/compare/v3.13.1...v3.14.0) - 2022-03-17 diff --git a/aofl-js-packages/form-validate/modules/is-required.js b/aofl-js-packages/form-validate/modules/is-required.js index 57f07beeb..ab3f1d102 100644 --- a/aofl-js-packages/form-validate/modules/is-required.js +++ b/aofl-js-packages/form-validate/modules/is-required.js @@ -15,7 +15,7 @@ * @return {Boolean} */ function isRequired(value) { - return Boolean(value && String(value) !== ''); + return Boolean((value && String(value) !== '') || (typeof value === 'number' && value === 0)); } export {