You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should probably use one of these solutions rather than trying to do it ourselves. We should also audit the existing components that expose ref to see if they also don't work with useRef.
The text was updated successfully, but these errors were encountered:
The
TextInput
component has two uses ofref
:ref
propref
to programmatically focus the input elementThe component attempts to merge the two refs but currently doesn't work if the consumer uses
useRef
.This internal/external ref pattern is common for UI libraries and there are a few solutions:
We should probably use one of these solutions rather than trying to do it ourselves. We should also audit the existing components that expose
ref
to see if they also don't work withuseRef
.The text was updated successfully, but these errors were encountered: