We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac6b649 commit 9409657Copy full SHA for 9409657
apps/builder/app/builder/features/settings-panel/props-section/animation/animation-panel-content.tsx
@@ -262,6 +262,12 @@ const DurationInput = ({
262
onChangeComplete={(event) => {
263
const value = durationUnitValueSchema.safeParse(event.value);
264
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
+ }
271
if (value.success) {
272
onChange(value.data, false);
273
setIntermediateValue(undefined);
0 commit comments