External reference to element that also uses {...getReferencedProps(...)}
#2855
Replies: 1 comment
-
I was able to solve this with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a component that is used to add ingredients to a shopping list.
The dropdown to pick the ingredients uses
useFloating(...)
.I want to be able to programmatically focus that input after hitting submit.
For that I would have used
forwardRef
and thenmyref.current?.focus()
but I'm not sure how to do sowith how the library uses refs?
Any hint would be great.
Beta Was this translation helpful? Give feedback.
All reactions