Skip to content

Change month updates value #213

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
Asgaroth opened this issue Jul 25, 2011 · 4 comments
Open

Change month updates value #213

Asgaroth opened this issue Jul 25, 2011 · 4 comments

Comments

@Asgaroth
Copy link

When changing the month using the next or previous arrows, the input value is updated, this does not happen in the original datepicker widget, (http://jqueryui.com/demos/datepicker/) .

I'm using the widget to filter some data by datetime via ajax, I have an event that observes the changes on the input field, since the input is updated on every month change several ajax calls are made while browsing, even though the user never really choosed a date.

@ypapou
Copy link

ypapou commented Nov 11, 2011

Also if set showTimepicker property to false then the input isn't updated when changing month (as in original datepicker).
This causes different behavior depending on display datetimepicker with time or not. I think that the input should not be updated on changing month in calendar.

Could you please fix this issue?

@Luoti
Copy link

Luoti commented Feb 16, 2012

Hi!

It's me with my hacky solutions. I know this code is here for a reason, but this hack does work for me. I commented lines 154 - 156 (default onChangeMonthYear) and 159 - 162 (default onClose). So far I haven't found any defects with this approach but I think there are some.

Use with care.

@sophistifunk
Copy link

This has been bugging me, too :(

@srnjak
Copy link

srnjak commented May 30, 2013

I found where is bug for this issue.

Line 827
var dt = $.datepicker._daylightSavingAdjust(new Date(dp_inst.selectedYear, dp_inst.selectedMonth, dp_inst.selectedDay)),

Data is provided from wrong fields. If you change selectedYear, selectedMonth and selectedDay with currentYear, currentMonth and currentDay, everything works fine. Hope this will be fixed in one of future releases.

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

5 participants