#15182 closed bug (fixed)
Error when underlaying dialog is closed after the new one is open
Reported by: | john357smith | Owned by: | Scott González |
---|---|---|---|
Priority: | minor | Milestone: | 1.12.2 |
Component: | ui.dialog | Version: | 1.12.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Follow this case:
- open first dialog (from link or button)
- open second dialog (from button from previous dialog) and close first dialog via 'close' command
- close second dialog (via closing button)
- try open first dialog again and stack trace will occur saying "Uncaught TypeError: Cannot read property '_focusTabbable' of undefined"
Workaround: close first dialog first then open a new one.
Tested on: latest Chrome and Firefox
Code example:
<script> $(function() { $("#link_test1").on('click', function() { $("#test_dlg1").dialog('open'); }); $("#test_dlg2").dialog({ autoOpen: false, modal: true }); $("#test_dlg1").dialog({ autoOpen: false, modal: true, buttons: [ { text: "open", click: function() { $('#test_dlg2').dialog("open"); $(this).dialog("close"); } } ] }); }); </script> <a href="#" id="link_test1">open</a> <div id="test_dlg1" title="test1"> test1 </div> <div id="test_dlg2" title="test2"> test2 </div>
Change History (4)
comment:1 Changed 6 years ago by
Status: | new → open |
---|
comment:2 Changed 6 years ago by
Owner: | set to Scott González |
---|---|
Resolution: | → fixed |
Status: | open → closed |
In 5708046:
comment:3 Changed 6 years ago by
Milestone: | none → 1.12.2 |
---|
Note: See
TracTickets for help on using
tickets.
https://github.com/jquery/jquery-ui/pull/1817