-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Labels
Description
Feature Request
Problem description
Currently, not all of components properly forward the passed in ref
prop to the underlying component. This leads to end-users not being able to access the underlying DOM node and execute their browsers native functions.
For example when you try to execute checkValidity
on the form element itself.
Proposed solution
Upgrade the components to forward refs: https://reactjs.org/docs/forwarding-refs.html
MVP
https://codesandbox.io/s/naughty-solomon-fqk4f?fontsize=14
Here you see who examples, the current <Form>
component and the native browsers one. The ref instances are totally different.
allangomes, vsubbotskyy, njuro, Gallevy, mxschmitt and 24 moreallangomes, rhefner, njuro, mxschmitt, piotrkochan and 7 moreslavb18malixsys