Ticket #3619 (closed bug: fixed)

Opened 5 years ago

Last modified 5 years ago

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:
Blocking: Blocked by:

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

comment:1 Changed 5 years ago by joern.zaefferer

  • Milestone changed from TBD to 1.next

comment:2 Changed 5 years ago by joern.zaefferer

  • Milestone changed from 1.next to 1.6

comment:3 Changed 5 years ago by kbwood

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

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.