Skip to content

🎥 Make videos programmatically with React

fix one TODO, add one more

Jonny Burgera25872ec5fc9
diff --git a/packages/cli/src/editor/components/CurrentComposition.tsx b/packages/cli/src/editor/components/CurrentComposition.tsx
index 54668d5bfe..867260b004 100644
--- a/packages/cli/src/editor/components/CurrentComposition.tsx
+++ b/packages/cli/src/editor/components/CurrentComposition.tsx
@@ -68,6 +68,7 @@ export const CurrentComposition = () => {
renderButton.click();
}, [video]);
+ // TODO: Should work even if in different tab
useEffect(() => {
const binding = keybindings.registerKeybinding({
event: 'keydown',
diff --git a/packages/cli/src/editor/components/RenderModal/RenderModal.tsx b/packages/cli/src/editor/components/RenderModal/RenderModal.tsx
index 3afe78ab1c..ffb682f301 100644
--- a/packages/cli/src/editor/components/RenderModal/RenderModal.tsx
+++ b/packages/cli/src/editor/components/RenderModal/RenderModal.tsx
@@ -542,8 +542,7 @@ export const RenderModal: React.FC<{
<InputDragger
value={frame}
onTextChange={onFrameChanged}
- // TODO: Actual frame
- placeholder="0-100"
+ placeholder={`0-${currentComposition.durationInFrames - 1}`}
// TODO: Debug the number input field
onValueChange={onFrameSetDirectly}
name="frame"