MDL-67513 core: Only move modal to body if currently attached
commit14cecfa4c0c7f46d18b3410f82f63c87f1427348
authorAndrew Nicols <andrew@nicols.co.uk>
Mon, 16 Nov 2020 07:19:28 +0000 (16 15:19 +0800)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 16 Nov 2020 08:40:43 +0000 (16 09:40 +0100)
tree229bdfa96edaa472b536cce60f648c354639b8ad
parentf920fdced0ff78468143a48a3da3533b18a6fb87
MDL-67513 core: Only move modal to body if currently attached

A previous change as part of this commitset was intended to move the
modal to the document.body, but where the modal had been destroyed it
was instead added back to the body.
lib/amd/build/modal.min.js
lib/amd/build/modal.min.js.map
lib/amd/build/modal_backdrop.min.js
lib/amd/build/modal_backdrop.min.js.map
lib/amd/src/modal.js
lib/amd/src/modal_backdrop.js