Fix mobile mode not working properly inside app preview
This commit is contained in:
parent
cefb733d00
commit
3dfcb48215
|
@ -21,11 +21,11 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
resizeObserver.observe(document.getElementById("spectrum-root"))
|
resizeObserver.observe(document.getElementById("clip-root"))
|
||||||
})
|
})
|
||||||
|
|
||||||
onDestroy(() => {
|
onDestroy(() => {
|
||||||
resizeObserver.unobserve(document.getElementById("spectrum-root"))
|
resizeObserver.unobserve(document.getElementById("clip-root"))
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue