Skip to content
This repository was archived by the owner on Oct 19, 2021. It is now read-only.

Commit bbbcff8

Browse files
emyarodjnm2377
authored andcommitted
fix(TextInput): add invalid attr on wrapper div (#2134)
1 parent 1fb7214 commit bbbcff8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/TextInput/TextInput.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ const TextInput = React.forwardRef(
101101
{label}
102102
{helper}
103103
{componentsX ? (
104-
<div className={`${prefix}--text-input__field-wrapper`}>
104+
<div
105+
className={`${prefix}--text-input__field-wrapper`}
106+
data-invalid={invalid || null}>
105107
{invalid && (
106108
<WarningFilled16
107109
className={`${prefix}--text-input__invalid-icon`}

0 commit comments

Comments
 (0)