Search and Top Navigation
#9313 closed bug (duplicate)
Opened May 17, 2013 01:03PM UTC
Closed September 19, 2014 12:48PM UTC
Datepicker reappears after selection when datepicker is in a modal in IE
Reported by: | andrewdmoreno | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | none |
Component: | ui.datepicker | Version: | 1.10.1 |
Keywords: | regression | Cc: | |
Blocked by: | Blocking: |
Description
When using a datepicker within a dialog, the datepicker reappears after selecting a date. If the datepicker is not in a dialog, this behavior is not reproduced.
I created a small jsbin to test and it looks like this behavior was first introduced in version 1.10.1 of jquery ui and remains through latest version. Versions prior (1.10.0, 1.9.x) did not replicate the behavior.
Failing jsbin (1.10.1):
http://jsbin.com/ajinuw/6/
Passing jsbin (1.10.0):
http://jsbin.com/ajinuw/5/
Attachments (0)
Change History (6)
Changed May 18, 2013 05:05AM UTC by comment:1
_comment0: | I can confirm this issue and believe I have traced it back to https://github.com/jquery/jquery-ui/commit/c53198c2099d25e80887c86af6d0e624414cc2f7 → 1368853651165720 |
---|---|
status: | new → open |
Changed August 15, 2014 03:31AM UTC by comment:2
I have the same problem. This works as a workaround. I don't know what adverse affects this has, so use at your own risk.
$.widget( "ui.dialog", $.ui.dialog, { _allowInteraction: function( event ) { return true; } });
Changed August 15, 2014 12:13PM UTC by comment:3
summary: | IE8 Datepicker reappears after selection when datepicker is in a modal → Datepicker reappears after selection when datepicker is in a modal in IE |
---|
This is still an issue in master: http://jsbin.com/ajinuw/8/. And it affects all versions of IE, not just IE8.
Changed August 15, 2014 01:43PM UTC by comment:4
keywords: | → regression |
---|
Changed August 22, 2014 03:32PM UTC by comment:5
I traced this down to this
focusinhandler in
_createOverlay(): https://github.com/jquery/jquery-ui/blob/849c6fd5376e12c6093c557bd4836ef0b145f145/ui/dialog.js#L830-839
When you select a date from the popup IE triggers
focusin, but other browsers do not. I'm not sure why.
I can confirm this issue and believe I have traced it back to https://github.com/jquery/jquery-ui/commit/c53198c2099d25e80887c86af6d0e624414cc2f7
Also, since then the ui-front change has been made but this is still an issue.