Skip to content

setting the defaultDate fills in a value when the input is emtpy #124

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

Merged
1 commit merged into from
Mar 15, 2011

Conversation

harbulot
Copy link
Contributor

Example HTML:

Example JavaScript:
$("#timepickertest1").datetimepicker({
dateFormat: $.datepicker.RFC_2822,
timeFormat: 'hh:mm'
});
$("#timepickertest1").datepicker("option","defaultDate","Sun, 27 Feb 2011");

This will set populate the input value with the current date, although this should only really be the default date used when opening the datetimepicker.

The attached patch should fix this issue.

@harbulot
Copy link
Contributor Author

I've just realized it seems to fix issue #107 too (which is more or less the same problem).

@trentrichardson
Copy link
Owner

Thanks harbulot! Merged!

This pull request was closed.
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.

2 participants