Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#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:


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 rdworth

Resolution: invalid
Status: newclosed

This is as designed. If you want to close the dialog call .dialog("close"). If you want to destroy the dialog call .dialog("destroy").

comment:2 Changed 12 years ago by rdworth

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.