Skip to content

Commit eca30f4

Browse files
hannekeIan Wensink
authored andcommitted
fix(webform-element): provide fallback when label display is not defined
1 parent 3c8abdd commit eca30f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WebformElement/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ class WebformElement extends Component {
168168

169169
getLabelDisplay() {
170170
const elementClass = this.getField().componentClass;
171-
return getNested(() => elementClass.meta.labelVisibility) || this.props.field['#title_display'];
171+
return getNested(() => elementClass.meta.labelVisibility) || this.props.field['#title_display'] || 'inline';
172172
}
173173

174174
/**

0 commit comments

Comments
 (0)