Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

fix: show custom option in easing dropdow only when used (#4290)

Jaya Krishna Namburub07b904bcdc9
diff --git a/apps/builder/app/builder/features/style-panel/sections/transitions/transition-timing.tsx b/apps/builder/app/builder/features/style-panel/sections/transitions/transition-timing.tsx
index 41306156e2..831bb32d18 100644
--- a/apps/builder/app/builder/features/style-panel/sections/transitions/transition-timing.tsx
+++ b/apps/builder/app/builder/features/style-panel/sections/transitions/transition-timing.tsx
@@ -88,9 +88,11 @@ export const TransitionTiming = ({
</SelectItem>
);
})}
- <SelectItem key="custom" value="custom">
- Custom
- </SelectItem>
+ {value === "custom" && (
+ <SelectItem key="custom" value="custom">
+ Custom
+ </SelectItem>
+ )}
</SelectGroup>
<SelectGroup>
<SelectLabel>Ease In</SelectLabel>