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.
Problem can be avoided by doing setTimeout(function(){//show datepicker}, 0);
Attachments (0)
Change History (14)
Changed September 07, 2012 10:18AM UTC by comment:1
Changed September 07, 2012 12:08PM UTC by comment:2
owner: | → kinglozzer |
---|---|
status: | new → pending |
I'm not seeing this behavior. Is this happening in a specific browser?
Changed September 07, 2012 12:10PM UTC by comment:3
resolution: | → invalid |
---|---|
status: | pending → closed |
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 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 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 comment:6
resolution: | invalid |
---|---|
status: | closed → reopened |
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 comment:7
milestone: | 1.9.0 → 1.11.0 |
---|
Changed October 27, 2012 08:19PM UTC by comment:8
status: | reopened → open |
---|
Changed April 20, 2013 09:25PM UTC by comment:10
summary: | Datepicker flashes when moving between two fields → Datepicker: 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 comment:11
Pull request at https://github.com/jquery/jquery-ui/pull/1192
Changed June 24, 2014 11:38PM UTC by comment:12
milestone: | 1.11.0 → none |
---|
Changed September 02, 2015 02:52PM UTC by comment:13
summary: | Datepicker: flashes when moving between two fields → Datepicker: Showing a datepicker while another datepicker is closing causing the newly opened datepicker to close |
---|
Changed September 02, 2015 02:57PM UTC by 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.
Sorry,
http://jsfiddle.net/MPQsR/1/