Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#8613 closed bug (fixed)

Destroying a dialog removes the original element from the DOM

Reported by: civilu Owned by:
Priority: minor Milestone: git
Component: ui.dialog Version: 1.9.0-rc.1
Keywords: Cc:
Blocked by: Blocking:

Description

Test case: http://jsfiddle.net/DYeUN/

If the element from which the dialog is created is the last child of body, destroying the dialog also removes this element.

Creating the dialog from an element on any other position makes destroy work as expected (the original element is left in the DOM at its initial position).

Change History (2)

comment:1 Changed 7 years ago by Scott González

Resolution: fixed
Status: newclosed

Dialog: Don't try to place the dialog next to itself on destroy. Fixes #8613 - Destroying a dialog removes the original element from the DOM.

Changeset: 4ab4684cfc36f8afe8782eb0501b51c420d478ae

comment:2 Changed 7 years ago by Scott González

Milestone: 1.9.0git
Note: See TracTickets for help on using tickets.