Skip to content

Commit e4fd530

Browse files
chore(release): 1.10.8 [skip ci]
## [1.10.8](v1.10.7...v1.10.8) (2023-05-21) ### Bug Fixes * required check ([cba6b3b](cba6b3b))
1 parent cba6b3b commit e4fd530

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## [1.10.8](https://github.com/ocadotechnology/codeforlife-package-javascript/compare/v1.10.7...v1.10.8) (2023-05-21)
2+
3+
4+
### Bug Fixes
5+
6+
* required check ([cba6b3b](https://github.com/ocadotechnology/codeforlife-package-javascript/commit/cba6b3bce07bcac753543c72b60b12d43cdb82e9))
7+
18
## [1.10.7](https://github.com/ocadotechnology/codeforlife-package-javascript/compare/v1.10.6...v1.10.7) (2023-05-21)
29

310

lib/cjs/components/form/CheckboxField.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ var ClickableTooltip_1 = __importDefault(require("../ClickableTooltip"));
7171
var CheckboxField = function (_a) {
7272
var formControlLabelProps = _a.formControlLabelProps, _b = _a.stackProps, stackProps = _b === void 0 ? {} : _b, _c = _a.iconProps, iconProps = _c === void 0 ? {} : _c, _d = _a.validate, validate = _d === void 0 ? (0, yup_1.bool)() : _d, _e = _a.required, required = _e === void 0 ? false : _e, name = _a.name, onChange = _a.onChange, otherCheckboxProps = __rest(_a, ["formControlLabelProps", "stackProps", "iconProps", "validate", "required", "name", "onChange"]);
7373
if (required && validate instanceof yup_1.BooleanSchema) {
74-
validate = validate.required();
74+
validate = validate.oneOf([true]);
7575
}
7676
var fieldConfig = {
7777
name: name,

lib/esm/components/form/CheckboxField.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ import ClickableTooltip from '../ClickableTooltip';
6666
var CheckboxField = function (_a) {
6767
var formControlLabelProps = _a.formControlLabelProps, _b = _a.stackProps, stackProps = _b === void 0 ? {} : _b, _c = _a.iconProps, iconProps = _c === void 0 ? {} : _c, _d = _a.validate, validate = _d === void 0 ? YupBool() : _d, _e = _a.required, required = _e === void 0 ? false : _e, name = _a.name, onChange = _a.onChange, otherCheckboxProps = __rest(_a, ["formControlLabelProps", "stackProps", "iconProps", "validate", "required", "name", "onChange"]);
6868
if (required && validate instanceof BooleanSchema) {
69-
validate = validate.required();
69+
validate = validate.oneOf([true]);
7070
}
7171
var fieldConfig = {
7272
name: name,

0 commit comments

Comments
 (0)