Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.

Add ref to root input #29

Open
twclark0 opened this issue Jan 6, 2022 · 1 comment
Open

Add ref to root input #29

twclark0 opened this issue Jan 6, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@twclark0
Copy link

twclark0 commented Jan 6, 2022

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.

@renanborgez
Copy link
Owner

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.

@renanborgez renanborgez added the enhancement New feature or request label Jan 21, 2022
@renanborgez renanborgez self-assigned this Jan 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants