-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
Modular Forms seems incompatible with SUID #193
Comments
Could you share a link with the code at stackblitz? If you want to use uncontrolled components (controlled by
|
@juanrgm you are right. Thanks for your input. The following code example works: <Field of={form} name="email">
{(field) => (
<TextField
variant="outlined"
inputProps={{
...field.props,
onChange: field.props.onInput,
}}
/>
)}
</Field> For what reason do you use the name |
Because the concept |
I understand the background with React. However, the name has nothing to do with whether the field can be controlled or am I wrong? |
All controlled components follow the same pattern ( I would need a proof of concept in React with MUI to see if there are any differences with SUID (example: |
Hello, I started SolidJS project with SUID and for forms I wanted to use Modular Forms for forms validation. But I got stuck on an issue, when passed field props do not match with TextField's props. Below is an example of TextField usage with Modular Forms.
It seems that your event handlers design does not match up with the default ones (for ).
So far I have used this workaround below. But my question is whether there is a correct way to use these libraries together?
The text was updated successfully, but these errors were encountered: