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

Event selectRange fired when day clicked #240

Open
jlainezs opened this issue Jan 4, 2019 · 1 comment
Open

Event selectRange fired when day clicked #240

jlainezs opened this issue Jan 4, 2019 · 1 comment

Comments

@jlainezs
Copy link

jlainezs commented Jan 4, 2019

selectRange event is fired when a day is clicked, so you got two events in one click:

  • selectRange
  • clickDay

How to solve this? I expect to got the selectRange event only when more than one day is selected, not when one day is clicked.
Thanks!

@Paul-DS
Copy link
Owner

Paul-DS commented Mar 21, 2019

Yes, clicking on a date is considered as selecting a range. If you don't want the both events to be triggered, you can use only the selectRange event, or in the selectRange event listener, check if the startDate and endDate are similar and do nothing in this case.

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