Skip to content

🎥 Make videos programmatically with React

Elements: Prevent Drag into Studio action flash

Igor Samokhovets77f943d4de37
diff --git a/packages/docs/src/components/Elements/ElementPage.tsx b/packages/docs/src/components/Elements/ElementPage.tsx
index 5025f6e229..61040d3261 100644
--- a/packages/docs/src/components/Elements/ElementPage.tsx
+++ b/packages/docs/src/components/Elements/ElementPage.tsx
@@ -54,9 +54,7 @@ export const ElementPage: React.FC<ElementPageProps> = ({
const [isSourceVisible, setIsSourceVisible] = useState(false);
const [isBrowserStudioActionVisible, setIsBrowserStudioActionVisible] =
useState(false);
- const [isEmbeddedInStudio, setIsEmbeddedInStudio] = useState<boolean | null>(
- null,
- );
+ const [isEmbeddedInStudio, setIsEmbeddedInStudio] = useState(false);
const posterRef = useRef<HTMLImageElement>(null);
const sourceId = useId();
const {height: previewHeight, width: previewWidth} =