Skip to content

🎥 Make videos programmatically with React

Update premounting.mdx

Jonny Burger4af69eb0682f
diff --git a/packages/docs/docs/player/premounting.mdx b/packages/docs/docs/player/premounting.mdx
index 5247b8d61b..06ae590ccd 100644
--- a/packages/docs/docs/player/premounting.mdx
+++ b/packages/docs/docs/player/premounting.mdx
@@ -99,6 +99,7 @@ const PremountedSequenceRefForwardingFunction: React.ForwardRefRenderFunction<
return {
...passedStyle,
opacity: active ? 0 : 1,
+ // @ts-expect-error Only in the docs - it will not give a type error in a Remotion project
pointerEvents: active ? 'none' : (passedStyle?.pointerEvents ?? 'auto'),
};
}, [active, passedStyle]);