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';
6
6
import MultipleChoiceListCommon , { wrapperProps } from '@data-driven-forms/common/multiple-choice-list' ;
7
7
import FormGroup from '../form-group/form-group' ;
8
8
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
+ ) ;
10
12
11
13
FinalCheckbox . propTypes = {
12
14
checked : PropTypes . bool ,
13
- onChange : PropTypes . func . isRequired
15
+ onChange : PropTypes . func . isRequired ,
16
+ option : PropTypes . object
14
17
} ;
15
18
16
19
const Wrapper = ( { meta, children, ...rest } ) => (
You can’t perform that action at this time.
0 commit comments