Skip to content

twoStepChange prop not working #423

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

Open
jjolmo opened this issue Nov 2, 2020 · 1 comment
Open

twoStepChange prop not working #423

jjolmo opened this issue Nov 2, 2020 · 1 comment

Comments

@jjolmo
Copy link

jjolmo commented Nov 2, 2020

Subject of the issue

There's a undocumented prop called twoStepChange that is supossedly made for calling onClick only on the second time you click on a calendar date. Used specifically for dateRanges. That way you have track of the new value exactly when you select the second date in the range.

It seems it is not used. Is there a way to get the same functionality? I want to know if the onClick call was called when the endDate is selected

[BUG] Bug Reproduce Steps

Add twoStepChange prop in
Do click in any date in the calendar
onChange is called
Tell us how to reproduce this issue.

[BUG] Expected behaviour

onChange should be called only after the second date (endDate) is added

Environment

Package Version: 1.1.3
React version: 16.9.0
Node version: 12.14.1
Browser: Chrome (latest)

@FPDK
Copy link

FPDK commented Dec 20, 2021

Maybe this can be of help: #202 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants