Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add types to ref in components that expose some methods #2590

Open
LeandroTorresSicilia opened this issue Jan 28, 2023 · 0 comments
Open

Comments

@LeandroTorresSicilia
Copy link
Member

LeandroTorresSicilia commented Jan 28, 2023

Some components like input expose method through ref like focus, blur, click, etc, we need to add this interface to ref exposed then when we use it like:

inputRef.current.focus()
...
<Input ref={inputRef} />

then inputRef.current.focus() will recognize the properties exposed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant