Skip to main content

Search and Top Navigation

#8556 open bug ()

Opened September 07, 2012 10:16AM UTC

Last modified September 02, 2015 02:57PM UTC

Datepicker: Showing a datepicker while another datepicker is closing causing the newly opened datepicker to close

Reported by: kinglozzer Owned by: kinglozzer
Priority: minor Milestone: none
Component: ui.datepicker Version: 1.8.23
Keywords: Cc:
Blocked by: Blocking:
Description

When moving between two Datepicker fields, using $('id').datepicker("show");, the second datepicker appears and then disappears.

http://jsfiddle.net/MPQsR/

Problem can be avoided by doing setTimeout(function(){//show datepicker}, 0);

Attachments (0)
Change History (14)

Changed September 07, 2012 10:18AM UTC by kinglozzer comment:1

Changed September 07, 2012 12:08PM UTC by scottgonzalez comment:2

owner: → kinglozzer
status: newpending

I'm not seeing this behavior. Is this happening in a specific browser?

Changed September 07, 2012 12:10PM UTC by scottgonzalez comment:3

resolution: → invalid
status: pendingclosed

I see the bug in the first fiddle, which uses 1.9.0rc1 + a 1.8 theme, but not in the second which uses 1.8.23. I also do not see this when using jquery-ui-git.

Changed September 07, 2012 12:43PM UTC by kinglozzer comment:4

Sorry I forked the first fiddle from a different bug, the second one is the one in question.

I've tried it in Chrome, Firefox and Safari on OSX 10.7.4 and the behaviour is the same in all three; when selecting a date, the second datepicker opens and then closes a split second later - but doesn't when I use setTimeout

Changed September 07, 2012 12:51PM UTC by kinglozzer comment:5

Just tested on VMWare Windows and it works, so I guess it's a Mac only bug. If it helps track it down; when it flashes on then off, if I then switch to a different window/program and switch back, it reappears.

Changed September 07, 2012 01:01PM UTC by scottgonzalez comment:6

resolution: invalid
status: closedreopened

The description was not very clear, it sounded like you just wanted us to click in the text fields.

Changed October 11, 2012 02:45PM UTC by scottgonzalez comment:7

milestone: 1.9.01.11.0

Changed October 27, 2012 08:19PM UTC by mikesherov comment:8

status: reopenedopen

Changed April 20, 2013 09:21PM UTC by tj.vantoll comment:9

#9236 is a duplicate of this ticket.

Changed April 20, 2013 09:25PM UTC by tj.vantoll comment:10

summary: Datepicker flashes when moving between two fieldsDatepicker: flashes when moving between two fields

Reduced test case against master: http://jsfiddle.net/tj_vantoll/5udAh/

Changed February 05, 2014 04:17PM UTC by grisendo comment:11

Changed June 24, 2014 11:38PM UTC by scottgonzalez comment:12

milestone: 1.11.0none

Changed September 02, 2015 02:52PM UTC by scottgonzalez comment:13

summary: Datepicker: flashes when moving between two fieldsDatepicker: Showing a datepicker while another datepicker is closing causing the newly opened datepicker to close

Changed September 02, 2015 02:57PM UTC by scottgonzalez comment:14

Likely caused by the same bug that causes #8907. Both should be non-issues with the rewrite since there's no more singleton.