react-native-web icon indicating copy to clipboard operation
react-native-web copied to clipboard

[fix] forward name prop

Open TimPetricola opened this issue 2 years ago • 2 comments

Fix https://github.com/necolas/react-native-web/issues/2596

Add name to the list of forwarded props. This is important to have input element be compatible with standards:

  • FormData web standard (doc)
  • new React useFormStatus hook (doc)
  • new React useFormState hook (doc)

TimPetricola avatar Oct 27 '23 11:10 TimPetricola

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

codesandbox-ci[bot] avatar Oct 27 '23 11:10 codesandbox-ci[bot]

I'm working on a plain form with an old basic action URL (so redirected with a POST), unsuccessfully, and this was specifically what was missing. Thanks! 🙏

mathieutu avatar Oct 27 '23 12:10 mathieutu