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

Commit

Permalink
fix(TextInput): add invalid attr on wrapper div (#2134)
Browse files Browse the repository at this point in the history
  • Loading branch information
emyarod authored and jnm2377 committed Apr 3, 2019
1 parent 1fb7214 commit bbbcff8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/TextInput/TextInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ const TextInput = React.forwardRef(
{label}
{helper}
{componentsX ? (
<div className={`${prefix}--text-input__field-wrapper`}>
<div
className={`${prefix}--text-input__field-wrapper`}
data-invalid={invalid || null}>
{invalid && (
<WarningFilled16
className={`${prefix}--text-input__invalid-icon`}
Expand Down

0 comments on commit bbbcff8

Please sign in to comment.