Skip to main content

Search and Top Navigation

#8011 closed bug (fixed)

Opened January 13, 2012 11:22PM UTC

Closed January 20, 2012 04:29PM UTC

Last modified January 25, 2012 09:17PM UTC

Datepicker: Dialog not closing on second trigger if opened using image

Reported by: mereth Owned by:
Priority: minor Milestone: 1.8.18
Component: ui.datepicker Version: 1.8.17
Keywords: Cc:
Blocked by: Blocking:

I have two datepicker on the same page and both are their own trigger.

If i click on the first trigger, the datepicker popup, then i click directly on the second trigger, the first dialog is closed and the new dialog is opened at the right place, but i can't close this dialog by clicking out of it or selecting a date, i have to reopen the first one with the first trigger.

I reproduce this behavior under ie8/i8-compatibilymode/firefox9 with jquery ui 1.8.17. Reverting to jquery ui 1.8.16 fix this issue. (working test case, jsfiddle use 1.8.16 atm)


Attachments (0)
Change History (10)

Changed January 13, 2012 11:23PM UTC by mereth comment:1

Forgot to say i use jquery 1.7.1

Changed January 16, 2012 01:29PM UTC by scottgonzalez comment:2

resolution: → invalid
status: newclosed

You can't have two fields with the same id; that's invalid HTML.

Changed January 16, 2012 06:16PM UTC by mereth comment:3

Sorry but it was just a copy/paste typo in jsfiddle, btw it can't be reproduce in it because it use jquery-ui 1.8.16 where this issue doesn't occur.

You can find a new test case with both working (1.8.16) and not (1.8.17) scenarii here :


ps: I can't reopen the issue, i hope this will not fall in the abyss of the internet :)

Changed January 16, 2012 06:24PM UTC by scottgonzalez comment:4

It works perfectly fine for me with 1.8.17:

Changed January 16, 2012 06:40PM UTC by mereth comment:5

I hope this video will help you to see the difficulties i have to close the second datepicker dialog.

Changed January 16, 2012 06:46PM UTC by scottgonzalez comment:6

resolution: invalid
status: closedreopened
summary: dialog not closing on second triggerDatepicker: Dialog not closing on second trigger if opened using image

This issue only occurs if you open the second datepicker using the image while the first datepicker is open.

Changed January 16, 2012 06:46PM UTC by scottgonzalez comment:7

status: reopenedopen

Changed January 20, 2012 04:29PM UTC by scottgonzalez comment:8

resolution: → fixed
status: openclosed

Fixed with #5818.

Changed January 20, 2012 09:00PM UTC by mereth comment:9


Changed January 25, 2012 09:17PM UTC by scottgonzalez comment:10

#8059 is a duplicate of this ticket.