Opened 10 years ago
Closed 10 years ago
#9408 closed bug (wontfix)
Dialog: Overlay for modal not removed when dialog opened on focus
Reported by: | ajmccluskey | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | none |
Component: | ui.dialog | Version: | 1.10.3 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
If a dialog is opened as a result of a focus event, its overlay is not removed when the dialog is closed. A jsFiddle demonstrating the issue may be found at http://jsfiddle.net/ajmccluskey/7fy3u.
I have tested the issue with both
<input type="text" ... />
and
<textarea>
elements.
The issue does not occur with jquery ui 1.9.2. This may be tested in the jsFiddle by commenting/uncommenting the included scripts, or by opening this alternate jsFiddle: http://jsfiddle.net/ajmccluskey/7fy3u/4.
I have observed this issue in the following browsers:
- Chrome 27.0.1453.116
- Firefox 21.0
- Safari 6.0.5 (8536.30.1)
Change History (3)
comment:1 Changed 10 years ago by
Status: | new → open |
---|---|
Summary: | Overlay for modal dialog not removed when dialog opened on focus → Dialog: Overlay for modal not removed when dialog opened on focus |
comment:2 Changed 10 years ago by
comment:3 Changed 10 years ago by
Resolution: | → wontfix |
---|---|
Status: | open → closed |
Opening a dialog inside a focus event is a terrible idea to start with. It would also result in an infinite focus loop, when the dialog closes and tries to move the focus back to the opener, causing the dialog to open again.
Slighlty simplified jsfiddle, shows the issue directly: http://jsfiddle.net/GHnsb/1/