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

Always run this.callback if user changed selection #2371

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chriscpty
Copy link

Before this, if the user selects the date range that matches the initial date range (current day to current day), this.callback is never called, because the check in hide() fails - neither startDate nor endDate differ from their old equivalents, despite the user or program never having set them before. (see also)

To alleviate this, I added a check for if the user changed the daterange selection - if they did, this.callback is called regardless of whether the dates visibly changed or not.

! always fire callback event if user changed selection, even if
selection matches previous
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

Successfully merging this pull request may close these issues.

1 participant