Skip to content

Commit 0098e9f

Browse files
author
Ricardo Quiñones
committed
Fixes the hint rendering
1 parent 92889ef commit 0098e9f

File tree

1 file changed

+10
-10
lines changed
  • packages/core-react/src/components/TextField

1 file changed

+10
-10
lines changed

packages/core-react/src/components/TextField/index.js

+10-10
Original file line numberDiff line numberDiff line change
@@ -110,18 +110,18 @@ export default function TextField({
110110
)}
111111
</div>
112112
</div>
113+
<div
114+
className={clsx(
115+
'ray-form-item__hint',
116+
{ 'ray-form-item__hint': hint },
117+
{ 'ray-form-item__hint--success': hintSuccess },
118+
{ 'ray-form-item__hint--error': hintError }
119+
)}
120+
>
121+
{hint || (hintSuccess || hintError)}
122+
</div>
113123
</div>
114124
</div>
115-
<div
116-
className={clsx(
117-
'ray-form-item__hint',
118-
{ 'ray-form-item__hint': hint },
119-
{ 'ray-form-item__hint--success': hintSuccess },
120-
{ 'ray-form-item__hint--error': hintError }
121-
)}
122-
>
123-
{hint || (hintSuccess || hintError)}
124-
</div>
125125
</div>
126126
);
127127
}

0 commit comments

Comments
 (0)