renanborgez / react-nice-input-password

Password input field with built in strength meter and Material UI support based on regex!

Home Page:https://codesandbox.io/s/o1v16rqqrz

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add ref to root input

twclark0 opened this issue · comments

Can a ref be added to the root input element, that's accessible from <NiceInputPassword ref={someRef} ... />?

Either that or a new prop function that I can call to initiate a recheck against the validators? Currently, the validation only happens on the onchange of the input, however, I need the power to re-run that check depending on surrounding component state changes.

That sounds like a very interesting case.
I will try to find a time next week to add that, but if you want, feel free to open a PR as well.