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:
Danila Poyarkov 2026-03-17 19:25:06 +03:00
parent 43694aaeb3
commit c36456d820

View file

@ -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,