File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ export default class FormPage extends React.Component {
79
79
invalid: PropTypes.bool, // applied the is-valid class when true, does nothing when false
80
80
bsSize: PropTypes.string,
81
81
cssModule: PropTypes.object,
82
- children: PropTypes.oneOfType(PropTypes.node, PropTypes.array, PropTypes.func) // for type="select"
82
+ children: PropTypes.oneOfType([ PropTypes.node, PropTypes.array, PropTypes.func] ) // for type="select"
83
83
};` }
84
84
</ PrismCode >
85
85
</ pre >
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ const propTypes = {
13
13
invalid : PropTypes . bool ,
14
14
bsSize : PropTypes . string ,
15
15
cssModule : PropTypes . object ,
16
- children : PropTypes . oneOfType ( PropTypes . node , PropTypes . array , PropTypes . func )
16
+ children : PropTypes . oneOfType ( [ PropTypes . node , PropTypes . array , PropTypes . func ] )
17
17
} ;
18
18
19
19
function CustomInput ( props ) {
You can’t perform that action at this time.
0 commit comments