Skip to content

Commit 9409657

Browse files

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

apps/builder/app/builder/features/settings-panel/props-section/animation/animation-panel-content.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,12 @@ const DurationInput = ({
262262
onChangeComplete={(event) => {
263263
const value = durationUnitValueSchema.safeParse(event.value);
264264
onChange(undefined, true);
265+
// allow user to reset with initial value
266+
if (toValue(event.value).toLowerCase() === "auto") {
267+
onChange(undefined, false);
268+
setIntermediateValue(undefined);
269+
return;
270+
}
265271
if (value.success) {
266272
onChange(value.data, false);
267273
setIntermediateValue(undefined);

0 commit comments

Comments
 (0)