Files
headlessui/packages
Robin Malfait e3cbcc43f9 fix Portal cleanup issue (#266)
When the last portal is unmounted we will
document.body.removeChild(target), but this crashes when something
tampered with it. This is reproduceable in the tests. Instead we now
ensure that the portal root always exists when mounting. We will also
ensure to target.parentElement.removeChild which will ensure that we can
reference the parent correctly.
2021-04-02 15:55:16 +02:00
..
2021-04-02 15:55:15 +02:00