Skip to content

Changing month or year not updating text input properly #622

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

Open
waltzonice opened this issue Aug 8, 2013 · 1 comment
Open

Changing month or year not updating text input properly #622

waltzonice opened this issue Aug 8, 2013 · 1 comment

Comments

@waltzonice
Copy link

I am playing with your first example on your datetimepicker webpage (Add a simple datetimepicker to jQuery UI's datepicker). I click in the empty text box (datetimepicker appears showing August 2013), then click on the "next month" button, the text box now shows "12/31/1899 00:00", even though the datetimepicker now shows September 2013. I click the "next month" button again, and now the text shows "09/08/2013 00:00" , when the dropdown shows "October 2013". It appears that when the month or year is changed, the datetimepicker is incorrectly setting the text to the previous value, and not the new value. Is this a bug?

@waltzonice
Copy link
Author

I want to add that this only happens when you start with an empty text box. Once there is a datetime entered into the textbox, reopening the datetimepicker will pre-populate correctly and changing the month/year will have no effect on the input box (consistent with how the jQuery datepicker works -- changing only month/year does not change the textbox, only changing the date will actually change the textbox).

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

No branches or pull requests

1 participant