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 isClear for singleDatePicker #296

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

Conversation

tkrevh
Copy link

@tkrevh tkrevh commented Feb 21, 2022

Inside isClear computed property, don't check if endDate is set when using singleDatePicker.
Without this fix, the dateRange.startDate does not properly set this.start data property.

To reproduce the issue, programmatically toggle the picker with singleDatePicker and initial property without endDate set.
You will see that the passed in startDate date and time are not selected in the popup.
To verify this issue, if you set the endDate to new Date(), then date and time are properly selected on picker toggle.

Inside isClear computed property, don't check if endDate is set when using singleDatePicker.
Without this fix, the dateRange.startDate does not properly set this.start data property.

To reproduce the issue, programmatically toggle the picker with singleDatePicker and initial property without endDate set. 
You will see that the passed in startDate date and time are not selected in the popup.
To verify this issue, if you set the endDate to new Date(), then date and time are properly selected on picker toggle.
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