Replies: 1 comment
-
|
Hello @MeesD94, does this issue still exist in the latest version? I am able to render a Close icon in the TextInput like so: Stackblitz: https://stackblitz.com/edit/github-sqag8s3u?file=src%2FApp.tsx |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I'm trying to use the decorator Prop of a TextInput component to add a Close icon for clearing the input. This is a common action that Carbon suggests.
The documentation of a TextInput tells me the following:
This tells me that I can pass any ReactNode to be rendered inside the TextInput. But if I look at the code, there is a check if the decorator is of type AILabel, which is not because I want to render a Close icon, that prevents anything from rendering.
Line 376 of
TextInput.tsxAm I missing something?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions