You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to use this with Semantic UI React's <Input> component.
I know that there is an option to specify a custom input component, but it doesn't work in this situation as described below:
The ref property which is provided to the input is a special field and doesn't get passed to the component itself but rather is handled by React internally.
Unfortunately, Semantic UI wraps the HTML input in a container, so the ref is assigned to the container instead of the HTML input and there is currently no way to fix this.
So I would suggest to add something like a renderInput prop:
Hello,
I would like to use this with Semantic UI React's
<Input>
component.I know that there is an option to specify a custom input component, but it doesn't work in this situation as described below:
The
ref
property which is provided to the input is a special field and doesn't get passed to the component itself but rather is handled by React internally.Unfortunately, Semantic UI wraps the HTML input in a container, so the ref is assigned to the container instead of the HTML input and there is currently no way to fix this.
So I would suggest to add something like a
renderInput
prop:so that we can do things like this:
What do you think?
The text was updated successfully, but these errors were encountered: