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

Adding name property #142

Closed
s-mahdi opened this issue Apr 24, 2020 · 2 comments
Closed

Adding name property #142

s-mahdi opened this issue Apr 24, 2020 · 2 comments
Labels
discussion feature Something new is needed

Comments

@s-mahdi
Copy link

s-mahdi commented Apr 24, 2020

Hello pals.
I'm using the react-hook-form for my forms and also <DatePicker /> as an input.

There is no problem with submitting. but for passing the value of input, I have to set up a state and pass it or use setValue of react-hook-form which both are kind of pain! if there is a name property for input of <DatePicker /> there is no more need to struggle with states and setValue and blah blah blah...
and I know there are a ton of ways to set the name property like using renderInput prop but I think a single prop will setLife("easier").
thanks in advance.

@s-mahdi s-mahdi added discussion feature Something new is needed labels Apr 24, 2020
@Kiarash-Z
Copy link
Owner

Hi, this is the coolest issue language I've ever seen. I will add this prop in the next version 😊

@Kiarash-Z Kiarash-Z mentioned this issue Apr 24, 2020
@Kiarash-Z
Copy link
Owner

@s-mahdi There you go. The new inputName prop is available in this new version(3.1.0). Install the latest version and enjoy 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion feature Something new is needed
Projects
None yet
Development

No branches or pull requests

2 participants