Skip to content

Commit dae7264

Browse files
committed
stable fixes
1 parent 89e26e5 commit dae7264

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/fields/ConfiguredField.jsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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

src/fields/Field.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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
};

0 commit comments

Comments
 (0)