Ticket #4804 (closed bug: fixed)

Opened 6 years ago

Last modified 6 years ago

onChangeMonthYear fires at first run

Reported by: ivanko Owned by:
Priority: minor Milestone: 1.8
Component: ui.datepicker Version: 1.7.2
Keywords: Cc:
Blocking: Blocked by:


When datepicker is used as inline component and function for onchangemonthyear is defined then at first run (when no event supplied) this function is executed with current day parameters. This leads to cycle when function defined like this function onChangeMonthYearExample (y,m,i) {

document.location = "?dt=" + y + "." + m + ".01";


Change History

comment:1 Changed 6 years ago by joern.zaefferer

  • Milestone changed from TBD to 1.8

Doesn't make sense that a change callback is called on init.

comment:2 Changed 6 years ago by kbwood

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in r3639.

Note: See TracTickets for help on using tickets.