hydrogen icon indicating copy to clipboard operation
hydrogen copied to clipboard

Expose inner form ref in <Form>

Open duailibe opened this issue 3 years ago • 0 comments

Description

I have some forms that I need to auto submit (i.e. onChange={() => formRef.current.submit()}), but can't do it when using the <Form> component (which offers a nicer UX than regular <form>).


Before submitting the PR, please make sure you do the following:

  • [x] Read the Contributing Guidelines
  • [x] Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123)
  • [ ] Update docs in this repository according to your change
  • [x] Run yarn changeset add if this PR cause a version bump based on Keep a Changelog and adheres to Semantic Versioning

duailibe avatar Aug 01 '22 18:08 duailibe