Skip to main content

Search and Top Navigation

#3258 closed bug (fixed)

Opened August 27, 2008 09:12AM UTC

Closed November 12, 2008 11:12PM UTC

Last modified October 11, 2012 09:15PM UTC

setDate opens not closeable datepicker if showOn is set to 'focus' or 'both'

Reported by: anonymous Owned by: grabanski
Priority: minor Milestone:
Component: ui.datepicker Version: 1.6b
Keywords: Cc:
Blocked by: Blocking:
Description

If I try to set a date on an input field through the setDate method:

$("input[name=input1]").datepicker("setDate",date);

It shows a datepicker (I think this is because it gets the focus) that is not closeable either by calling:

$("input[name=input1]").datepicker("setDate",date).datepicker("hide");

or

$("input[name=input1]").datepicker("hide");

or even clicking in the close button on the datepicker itself. The only way to hide the datepicker is to open another one.

It does not happen setting the showOn to 'button' so I think is related to the input getting the focus.

Attachments (0)
Change History (4)

Changed November 12, 2008 11:12PM UTC by kbwood comment:1

resolution: → fixed
status: newclosed

Fixed. Only moves focus if the datepicker is already showing for that input field.

Changed February 16, 2011 08:01AM UTC by jerone comment:2

I'm having problems with this issue again.

I know it's an old one, but the report describes my issue perfect.

Tested with jQuery 1.5 & jQuery UI 1.8.9.

Changed February 16, 2011 12:47PM UTC by scottgonzalez comment:3

Works fine for me: http://jsbin.com/irego5/edit

Changed October 11, 2012 09:15PM UTC by scottgonzalez comment:4

milestone: TBD

Milestone TBD deleted