Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug that didn't allow showing datepicker twice
When a datepicker was shown, the options date property value was changed to a string, If one tried to show again the datepicker it would throw an error, because we were trying to treat date as a Date object, and it is already a String (objects are mutable in Javascript). So my solution was to check if the date attribute is a Date object, if so, change to string, if not, leave it as it is.
- Loading branch information