Skip to content
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

useForm itemProps doesn't seem to work well with the storeValue prop #19

Open
third774 opened this issue Nov 11, 2023 · 0 comments
Open

Comments

@third774
Copy link

third774 commented Nov 11, 2023

Maybe I'm overlooking something, but I'm having to explicitly do the following to get storeValue working in combination with the useForm().itemProps. It would be rad if this could be worked into the useForm API so that it's not necessary!

<Form.Checkbox
  label="Copilot"
  storeValue
  {...itemProps.copilot}
  // force this to be an uncontrolled input
  // so the stored value is respected
  value={undefined}
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant