-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
customDateFormat shows 'undefined' when you manually erase the date #2693
Comments
Came here to report exactly that... +1 |
By default, the "defaultDate" option is equal to undefined. Just set this option to double quotes: defaultDate: "" |
An empty or random string doesn't seem to be accepted. At a glance only an ISO string or a Date object are accepted. But luckily The correct behavior is observed when you click the trashcan from adding
|
Yes I can confirm |
hi. I believe this is resolved in the related branch. Please check this stackblitz |
I don't think I understand the other changes but the |
Yeah I'm still trying to get the plugin to behave with time zone bits and thought I could squeeze it in. Glad it's working, I'll get it pub'd soon. |
<h2>6.2.7</h2> <h3>Bug fixes</h3> <ul> <li>Fixed customDateFormat shows 'undefined' when you manually erase the date #2693</li> <li>Fixed calendar header not updating correctly #2685</li> <li>Fixed clock components disappearing when using side by side #2684</li> <li>Fixed some doc issues #2706</li> </ul> <h3>New</h3> <ul> <li>Unit tests! #2711</li> </ul>
Hello. This should be fixed in 6.2.7 |
Prerequisites
Describe the issue
See the sample on https://getdatepicker.com/6/plugins/customDateFormat.html
Steps to reproduce
Expected
It's just empty.
StackBlitz fork
https://getdatepicker.com/6/plugins/customDateFormat.html
What operating system(s) are you seeing the problem on?
Windows, macOS, Android, iOS, Linux
What browser(s) are you seeing the problem on?
Chrome, Safari, Firefox, Microsoft Edge, Opera
What version of are you using? You can find this information from the sample StackBlitz.
v6.2.4
What your browser's locale? You can find this information from the sample StackBlitz.
en-US
The text was updated successfully, but these errors were encountered: