Skip to content

Commit 5e08f10

Browse files
committed
fix(checkbox): remove unused value prop from CheckboxGroup
1 parent 9df657d commit 5e08f10

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

.changeset/stupid-zebras-wave.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@twilio-paste/checkbox': patch
3+
'@twilio-paste/core': patch
4+
---
5+
6+
[Checkbox] Remove unused `value` prop.

packages/paste-core/components/checkbox/src/CheckboxGroup.tsx

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,7 @@ export interface CheckboxGroupProps extends InlineControlGroupProps {
1212

1313
const CheckboxGroup = React.forwardRef<HTMLFieldSetElement, CheckboxGroupProps>(
1414
(
15-
{
16-
children,
17-
disabled = false,
18-
errorText,
19-
isSelectAll = false,
20-
name,
21-
onChange,
22-
orientation = 'vertical',
23-
value,
24-
...props
25-
},
15+
{children, disabled = false, errorText, isSelectAll = false, name, onChange, orientation = 'vertical', ...props},
2616
ref
2717
) => {
2818
const onChangeHandler = React.useCallback(
@@ -78,7 +68,6 @@ if (process.env.NODE_ENV === 'development') {
7868
errorText: PropTypes.string,
7969
helpText: PropTypes.string,
8070
orientation: PropTypes.oneOf(['vertical', 'horizontal']),
81-
value: PropTypes.string,
8271
};
8372
}
8473

0 commit comments

Comments
 (0)