You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following error occurs, when removing a collage-fragment from the DOM, whose underlying application does not use collage:
Steps to reproduce the error:
create a parent app which includes a child app via collage-fragment
Example code parent:
<script type="module">
import { expose } from "@collage/core";
expose().then((context) => {
document.querySelector("#btn").addEventListener("click", () => {
document.querySelector("#iframe").remove();
});
});
</script>
<button id="btn">Remove fragment without collage</button>
<collage-fragment id="iframe" url="./child.html"></collage-fragment>
create a child app which should not use collage itself (child.html)
<div>It does not matter what happens here</div>
the parent element removes the collage-fragment from the DOM --> document.querySelector('collage-fragment').remove();
Note
If a collage fragment is created with an application that does not use collage itself, this will result in collage not being able to complete the handshake and therefore some collage features cannot be used.
The text was updated successfully, but these errors were encountered:
Following error occurs, when removing a collage-fragment from the DOM, whose underlying application does not use collage:
Steps to reproduce the error:
Example code parent:
Note
If a collage fragment is created with an application that does not use collage itself, this will result in collage not being able to complete the handshake and therefore some collage features cannot be used.
The text was updated successfully, but these errors were encountered: