New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug]: Input field not forwarded when it's in another wrapper/hoc file #3609
Labels
bug
Something isn't working
Comments
@OmarAljoundi Hey Omar, my current code resembles yours closely. The onSubmit function worked perfectly, but there were some issues with certain props like onChange and onBlur not being forwarded. I ended up made updates to the FormInput component as shown below:
FYI, I utilized |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Hi,
In my project, I created a wrapper component that consists of FormField along with Input component.
The issue is, props that I set in the custom component is not being forwarded to the wrapper component, such as the onChange method.
LoginForm.tsx
FormInput.tsx
Anyone knows the issue? Thanks
Affected component/components
Input
How to reproduce
Codesandbox/StackBlitz link
No response
Logs
No response
System Info
Before submitting
The text was updated successfully, but these errors were encountered: