Skip to content

🎥 Make videos programmatically with React

Merge branch 'main' into feat/custom-color-picker-7418

Jonny Burger6e753011a5a0
diff --cc packages/studio/src/components/Timeline/TimelineColorField.tsx
index 9080a5745a,6d86a955f6..5ad8383297
--- a/packages/studio/src/components/Timeline/TimelineColorField.tsx
+++ b/packages/studio/src/components/Timeline/TimelineColorField.tsx
@@@ -35,11 -131,17 +35,11 @@@ export const TimelineColorField: React.
typeof effectiveValue === 'string'
? effectiveValue
: field.fieldSchema.type === 'color'
-- ? field.fieldSchema.default
++ ? (field.fieldSchema.default ?? '#000')
: '';
- const hexValue = useMemo(
- () => toHex(currentValue ?? '#000000'),
- [currentValue],
- );
-
- const onColorChange: React.ChangeEventHandler<HTMLInputElement> = useCallback(
- (e) => {
- const newValue = e.target.value;
+ const onChange = useCallback(
+ (next: string) => {
if (!propStatus.canUpdate) {
return;
}