#7667 closed bug (notabug)
enhancement - bug: Dialog is not destroyed on close
Reported by: | atlasan | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.9.0 |
Component: | ui.dialog | Version: | 1.8.6 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
After closing a Dialog (both with close button and esc key, so tought in each way), the element remains hidden with 'display: none;'. Probably better if can choose if destroy or not (maybe default true).
Change History (2)
comment:1 Changed 12 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 Changed 12 years ago by
Specifically, if you want the dialog to be destroyed on close:
$( "#dialog" ).dialog({ close: function() { $( this ).dialog( "destroy" ); } });
Note: See
TracTickets for help on using
tickets.
This is as designed. If you want to close the dialog call .dialog("close"). If you want to destroy the dialog call .dialog("destroy").