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

fix(datepicker): reset state properly when clearOnSameDateClick is false #706

Merged
merged 1 commit into from
Jan 7, 2022

Conversation

arthurdenner
Copy link
Owner

What kind of change does this PR introduce?
Bug fix. Relates to #693.

What is the current behavior?
When clearOnSameDateClick={false}, the state is not reset properly.

What is the new behavior?
The state is reset properly because clearOnSameDateClick is taken into account before setting newDate to null.

Checklist:

  • Documentation
  • Tests
  • Ready to be merged

@vercel
Copy link

vercel bot commented Jan 7, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/arthurdenner/react-semantic-ui-datepickers/EQKvvp2EaSsajQ8LtGzowbzhZV2s
✅ Preview: https://react-semantic-ui-datepickers-git-fix-reset-state-arthurdenner.vercel.app

@github-actions
Copy link

github-actions bot commented Jan 7, 2022

🎉 This PR is included in version 2.15.1-beta.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

1 participant