Opened 8 years ago

Closed 8 years ago

#3619 closed bug (fixed)

Setting a date pops up the datepicker window

Reported by: deebo Owned by:
Priority: minor Milestone: 1.7
Component: ui.datepicker Version: 1.6rc2
Keywords: Cc:
Blocked by: Blocking:

Description

When using datepicker as a "container for dates", where outside elements can affect its selected date (like setting predetermined date ranges), using

$('#mypicker').datepicker("setDate", new Date());

opens the datepicker window for soem reason, should atleast be possible to turn this behaviour off.

Change History (3)

comment:1 Changed 8 years ago by Jörn Zaefferer

Milestone: TBD1.next

comment:2 Changed 8 years ago by Jörn Zaefferer

Milestone: 1.next1.6

comment:3 Changed 8 years ago by kbwood

Resolution: fixed
Status: newclosed

Fixed in the HEAD. At the end of _updateDatepicker, replace the focus test with:

if ($.datepicker._curInst == inst)

$(inst.input[0]).focus();

Note: See TracTickets for help on using tickets.