Skip to main content

Search and Top Navigation

#7667 closed bug (notabug)

Opened August 25, 2011 05:26PM UTC

Closed August 25, 2011 05:59PM UTC

Last modified August 25, 2011 06:38PM UTC

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).

Attachments (0)
Change History (2)

Changed August 25, 2011 05:59PM UTC by rdworth comment:1

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").

Changed August 25, 2011 06:38PM UTC by rdworth comment:2

Specifically, if you want the dialog to be destroyed on close:

$( "#dialog" ).dialog({
  close: function() {
    $( this ).dialog( "destroy" );