From 4726774b2f9715913365bbf3d852da0ef365dcb9 Mon Sep 17 00:00:00 2001 From: melloware Date: Thu, 21 Mar 2024 07:59:23 -0400 Subject: [PATCH] Fix #6197: Checkbox remove defaultChecked property --- components/lib/checkbox/Checkbox.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/lib/checkbox/Checkbox.js b/components/lib/checkbox/Checkbox.js index bbc98352d2..a2d1ca2fd2 100644 --- a/components/lib/checkbox/Checkbox.js +++ b/components/lib/checkbox/Checkbox.js @@ -122,7 +122,6 @@ export const Checkbox = React.memo( className: cx('input'), name: props.name, tabIndex: props.tabIndex, - defaultChecked: checked, onFocus: (e) => onFocus(e), onBlur: (e) => onBlur(e), onChange: (e) => onChange(e), @@ -130,7 +129,7 @@ export const Checkbox = React.memo( readOnly: props.readOnly, required: props.required, 'aria-invalid': props.invalid, - checked: isChecked(), + checked: checked, ...ariaProps }, ptm('input')