agnosticui icon indicating copy to clipboard operation
agnosticui copied to clipboard

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

Open deleteman opened this issue 2 years ago • 2 comments

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!

deleteman avatar Aug 18 '22 05:08 deleteman

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.

roblevintennis avatar Sep 08 '22 14:09 roblevintennis

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

klaseca avatar Oct 24 '22 16:10 klaseca