How to get a reference to the underlying DOM element #915
-
Can this be done with the form components? I want to get a reference to the DOM input element to focus it, but it seems the Works
Doesn't work
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Seems that there are no props provided for binding elements. One workaround is:
The input variable will contain the underlying input element. The |
Beta Was this translation helpful? Give feedback.
-
Is this the only accepted answer? I can't find any way to focus a search box. |
Beta Was this translation helpful? Give feedback.
Seems that there are no props provided for binding elements.
One workaround is:
The input variable will contain the underlying input element. The
content
class is used so it wouldn't affect the layout.