Fix loader not removed — add onReady callback to dismiss #loader
The loader div from index.html was never dismissed after the SDK migration because use-canvas.ts moved to the SDK (which correctly doesn't touch app-specific DOM). Added onReady callback in EditorCanvas.vue to fade out and remove the loader.
This commit is contained in:
parent
43694aaeb3
commit
c36456d820
|
|
@ -13,7 +13,16 @@ const canvasRef = ref<HTMLCanvasElement | null>(null)
|
|||
|
||||
const { hitTestSectionTitle, hitTestComponentLabel, hitTestFrameTitle } = useCanvas(
|
||||
canvasRef,
|
||||
store
|
||||
store,
|
||||
{
|
||||
onReady() {
|
||||
const loader = document.getElementById('loader')
|
||||
if (loader) {
|
||||
loader.classList.add('fade-out')
|
||||
setTimeout(() => loader.remove(), 300)
|
||||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
const { cursorOverride } = useCanvasInput(
|
||||
canvasRef,
|
||||
|
|
|
|||
Loading…
Reference in a new issue