Skip to content

🎥 Make videos programmatically with React

don't pass rightAlign to the DOM

Jonny Burger32e8cd68f2e4
diff --git a/packages/cli/src/editor/components/NewComposition/RemInput.tsx b/packages/cli/src/editor/components/NewComposition/RemInput.tsx
index 352214294d..963d9968c1 100644
--- a/packages/cli/src/editor/components/NewComposition/RemInput.tsx
+++ b/packages/cli/src/editor/components/NewComposition/RemInput.tsx
@@ -67,7 +67,7 @@ export const getInputBorderColor = ({
const RemInputForwardRef: React.ForwardRefRenderFunction<
HTMLInputElement,
Props
-> = ({status, ...props}, ref) => {
+> = ({status, rightAlign, ...props}, ref) => {
const [isFocused, setIsFocused] = useState(false);
const [isHovered, setIsHovered] = useState(false);
const inputRef = useRef<HTMLInputElement>(null);
@@ -79,10 +79,10 @@ const RemInputForwardRef: React.ForwardRefRenderFunction<
...inputBaseStyle,
width: '100%',
borderColor: getInputBorderColor({isFocused, isHovered, status}),
- textAlign: props.rightAlign ? 'right' : 'left',
+ textAlign: rightAlign ? 'right' : 'left',
...(props.style ?? {}),
};
- }, [isFocused, isHovered, props.rightAlign, props.style, status]);
+ }, [isFocused, isHovered, rightAlign, props.style, status]);
useImperativeHandle(
ref,