Open tkrevh opened 2 years ago
I was able to work around it by calling dateClick with the initial value after the toggle.
Ok,
after some code review and testing, I think I've found the issue.
We're using singleDatePicker and the isClear computed property is checking if both startDate and endDate are set. Then the dateRange.startDate watcher does not set the this.start data property, because isClear is true.
For a fix, I suggest only checking in isClear computed property if endDate is set, if singleDatePicker=false
Submitted PR #296
I have a case, where we need to open the picker programmatically using togglePicker when editing a scheduled post. The picker opens, but it doesn't select the initial date and time.
If the picker is opened via users input, the initial date and time and selected.
Any ideas?