Skip to content

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

Description

@third774

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}
/>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Severity

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions