From b99cc6b7f474601fb94161a16db047c24f81fc56 Mon Sep 17 00:00:00 2001 From: mcandu Date: Sat, 12 Sep 2020 20:49:35 +0300 Subject: [PATCH] Fixed - Fieldset shows empty legend --- src/components/fieldset/Fieldset.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/components/fieldset/Fieldset.js b/src/components/fieldset/Fieldset.js index 1e7bf12bf0..accb567fc2 100644 --- a/src/components/fieldset/Fieldset.js +++ b/src/components/fieldset/Fieldset.js @@ -136,12 +136,13 @@ export class Fieldset extends Component { renderLegend(collapsed) { const legendContent = this.renderLegendContent(collapsed); - - return ( - - {legendContent} - - ); + if (this.props.legend != null || this.props.toggleable) { + return ( + + {legendContent} + + ); + } } render() {