Skip to content

Commit 1622cf1

Browse files
committed
fixup! fixup! fixup! fixup! fixup! Add the missing support of help texts to InputGroup (#663)
1 parent 9c309cc commit 1622cf1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/InputGroup/InputGroup.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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 = ({
126126
InputGroup.defaultProps = {
127127
children: undefined,
128128
disabled: false,
129-
helpTexts: null,
129+
helpTexts: undefined,
130130
id: undefined,
131131
isLabelVisible: true,
132132
layout: 'vertical',

0 commit comments

Comments
 (0)