Skip to content

🎥 Make videos programmatically with React

`remotion`: Apply premount default to every canvas sample

JonnyBurgerb58b04503aa1
diff --git a/packages/core/src/HtmlInCanvas.tsx b/packages/core/src/HtmlInCanvas.tsx
index 1a83e2cd35..1a4366520b 100644
--- a/packages/core/src/HtmlInCanvas.tsx
+++ b/packages/core/src/HtmlInCanvas.tsx
@@ -979,19 +979,19 @@ const HtmlInCanvasContent = forwardRef<
: canvasStyle
}
>
- <div
- ref={divRef}
- style={
- paintTargetMode === 'copied'
- ? {...innerStyle, visibility: 'visible'}
- : innerStyle
- }
- >
- <DefaultPremountContext.Provider value={0}>
+ <DefaultPremountContext.Provider value={0}>
+ <div
+ ref={divRef}
+ style={
+ paintTargetMode === 'copied'
+ ? {...innerStyle, visibility: 'visible'}
+ : innerStyle
+ }
+ >
{children}
- </DefaultPremountContext.Provider>
- </div>
- {canvasSiblings}
+ </div>
+ {canvasSiblings}
+ </DefaultPremountContext.Provider>
</canvas>
{paintTargetMode === 'copied' ? (
<canvas