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

[react] Are there any plans to add "forwardRefs" to your Input element? #240

Open
deleteman opened this issue Aug 18, 2022 · 2 comments
Open
Labels
enhancement New feature or request

Comments

@deleteman
Copy link

Hi, I'm testing the library and I'm loving it, but I was unable to capture the value of input fields using refs in React.
If I didn't see any specific attributes that would forward the ref directly into the input element to allow me to read the content of the field later on. So I was wondering if this is by design or if you were planning on adding some kind of support for this in the future?

Thanks!

@roblevintennis
Copy link
Contributor

roblevintennis commented Sep 8, 2022

You're not able to support your use case by simply listening for change events?

Typically I've used forwarded refs when I really need low level control of an otherwise "controlled component" and it always adds complexity so I'm careful to not lean on that often.

Again, would love to better understand your needs.

@klaseca
Copy link

klaseca commented Oct 24, 2022

For example, you can not currently use react-hook-form library with agnosticui

@roblevintennis roblevintennis added the enhancement New feature or request label Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants