Fix particle effects not reloading when the Particles component is re-mounted

This commit is contained in:
thepaperpilot 2022-05-22 10:06:24 -05:00
parent 65e265768b
commit 7db806afc6
2 changed files with 7 additions and 7 deletions

View file

@ -63,9 +63,9 @@ const validLinks = computed(() => {
<style scoped>
.resize-listener {
position: absolute;
top: 5px;
left: 5px;
right: 5px;
top: 0px;
left: 0;
right: -4px;
bottom: 5px;
z-index: -10;
pointer-events: none;

View file

@ -63,7 +63,7 @@ export default defineComponent({
props.onInit(app.value as Application);
}
updateBounds();
if (module.hot?.status() === "apply" && props.onHotReload) {
if (props.onHotReload) {
nextTick(props.onHotReload);
}
});
@ -102,9 +102,9 @@ export default defineComponent({
.not-fullscreen,
.resize-listener {
position: absolute;
top: 5px;
left: 5px;
right: 5px;
top: 0px;
left: 0;
right: -4px;
bottom: 5px;
pointer-events: none;
}