File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/components/InputGroup Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ export const InputGroup = ({
9090 { children }
9191 </ InputGroupContext . Provider >
9292 </ div >
93- { helpTexts && (
93+ { helpTexts && helpTexts . length > 0 && (
9494 < ul
9595 className = { styles . helpText }
9696 id = { id && `${ id } __helpTexts` }
@@ -104,7 +104,7 @@ export const InputGroup = ({
104104 ) ) }
105105 </ ul >
106106 ) }
107- { validationTexts && (
107+ { validationTexts && validationTexts . length > 0 && (
108108 < ul
109109 className = { styles . validationText }
110110 id = { id && `${ id } __validationTexts` }
@@ -126,7 +126,7 @@ export const InputGroup = ({
126126InputGroup . defaultProps = {
127127 children : undefined ,
128128 disabled : false ,
129- helpTexts : null ,
129+ helpTexts : undefined ,
130130 id : undefined ,
131131 isLabelVisible : true ,
132132 layout : 'vertical' ,
You can’t perform that action at this time.
0 commit comments