dojo / interop

Provides bindings and interoperability between Dojo packages and other libraries
Other
1 stars 14 forks source link

DijitWrapper should not preserve DOM on Dijit destruction #6

Closed kitsonk closed 7 years ago

kitsonk commented 7 years ago

Bug

The DijitWrapper should not preserve DOM when destroying a Dijit instance. This is because when a DijitWrapper is destroyed by the widgeting system, it is only done when the DOM it is responsible is supposed to be removed from the document. Preserving the DOM causes phantom Dijit instances to render when there is some sort of conditional rendering in the direct parent.