File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ export class RawConfiguredField extends React.Component {
2727 componentProps = { } ,
2828 id,
2929 htmlid,
30+ isHidden,
3031 } = this . props ;
3132
3233 return (
@@ -35,7 +36,10 @@ export class RawConfiguredField extends React.Component {
3536 className = { classNames ( classes . root , {
3637 [ classes . withLabel ] : LabelComponent
3738 } ) }
38- style = { { flexDirection : activeCompColor ? 'row' : 'column' } }
39+ style = { {
40+ display : isHidden ? 'none' : 'flex' ,
41+ flexDirection : activeCompColor ? 'row' : 'column'
42+ } }
3943 >
4044 { LabelComponent && title && (
4145 < LabelComponent
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ export default (props) => {
1414 const descriptionText = uiSchema [ 'ui:description' ] ;
1515 const activeCompColor = uiSchema [ 'ui:activeCompColor' ] ;
1616 const helpText = uiSchema [ 'ui:help' ] ;
17+ const isHidden = uiSchema [ 'mui:type' ] === 'hidden' ;
1718 return (
1819 < ConfiguredField
1920 id = { id }
@@ -29,6 +30,7 @@ export default (props) => {
2930 descriptionText = { descriptionText }
3031 helpText = { helpText }
3132 htmlid = { htmlid }
33+ isHidden = { isHidden }
3234 />
3335 ) ;
3436} ;
You can’t perform that action at this time.
0 commit comments