Project: moodle
Issue MDL-43886: moodle-core-dialogue leaves itself in the DOM after destroying itself
Noticed when trying to debug issues with the confirmation dialogue. Although we call destroy on the code, this does not actually remove it from the DOM. This is a minor issue but I think we should remove things from the DOM too to prevent confusion, and issues where the wrong dialogue is targetted somehow. Suggesting this as a master-only fix.
Story points: 3