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