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.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
fix: Handling custom value select from select box in transitions (#2659)
Jaya Krishna Namburu430441462327
diff --git a/apps/builder/app/builder/features/style-panel/sections/transitions/transition-content.tsx b/apps/builder/app/builder/features/style-panel/sections/transitions/transition-content.tsxindex 24e3e8d385..6b3632f0ee 100644--- a/apps/builder/app/builder/features/style-panel/sections/transitions/transition-content.tsx+++ b/apps/builder/app/builder/features/style-panel/sections/transitions/transition-content.tsx@@ -260,6 +260,8 @@ export const TransitionContent = ({onChange={handleChange}onBlur={handleComplete}onKeyDown={(event) => {+ event.stopPropagation();+if (event.key === "Enter") {handleComplete();event.preventDefault();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.tsxindex 9f60aabe39..b0b7e26e7c 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@@ -26,9 +26,10 @@ type TransitionTimingProps = {onTimingSelection: (params: { timing: KeywordValue }) => void;};-const options: TimingFunctions[] = Object.keys(- timingFunctions-) as TimingFunctions[];+const options: TimingFunctions[] = [+ ...Object.keys(timingFunctions),+ "custom",+] as TimingFunctions[] & "custom";export const TransitionTiming = ({timing,@@ -75,6 +76,7 @@ export const TransitionTiming = ({setValue(value);if (value === "custom") {+ onTimingSelection({ timing: { type: "keyword", value: "" } });return;}