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

add flexibility to componentDidUpdate #250

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

Conversation

donaldsin
Copy link

No description provided.

@donaldsin
Copy link
Author

donaldsin commented Apr 11, 2024

imagine when there is a state change to clear the current value (i.e. the value is an empty String), it will be better to reset the default opening screen to current date, instead of caching the previous value.
Plus, It will throw error when there is a change in maxDate or minDate when value is empty, as the state of date, month and year were cached, and it is out of range

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.

None yet

1 participant