File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
packages/pf4-component-mapper/src/checkbox Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -6,11 +6,14 @@ import { Checkbox } from '@patternfly/react-core';
66import MultipleChoiceListCommon , { wrapperProps } from '@data-driven-forms/common/multiple-choice-list' ;
77import FormGroup from '../form-group/form-group' ;
88
9- const FinalCheckbox = ( props ) => < Checkbox isChecked = { props . checked } { ...props } onChange = { ( _value , e ) => props . onChange ( e ) } /> ;
9+ const FinalCheckbox = ( { option, ...props } ) => (
10+ < Checkbox isChecked = { props . checked } { ...props } onChange = { ( _value , e ) => props . onChange ( e ) } { ...option } />
11+ ) ;
1012
1113FinalCheckbox . propTypes = {
1214 checked : PropTypes . bool ,
13- onChange : PropTypes . func . isRequired
15+ onChange : PropTypes . func . isRequired ,
16+ option : PropTypes . object
1417} ;
1518
1619const Wrapper = ( { meta, children, ...rest } ) => (
You can’t perform that action at this time.
0 commit comments