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: validate using long-hand property for transition while saving (#3566)
Jaya Krishna Namburucc0ccf6c5174
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 b8fb29e990..372c741656 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@@ -101,13 +101,20 @@ export const TransitionContent = ({(item): item is UnitValue | KeywordValue => item != null);const newLayer: TupleValue = { type: "tuple", value };+ const layers = parseTransition(toValue(newLayer));+ if (layers.type === "invalid") {+ setIntermediateValue({+ type: "invalid",+ value: toValue(newLayer),+ });+ return;+ }setIntermediateValue({type: "intermediate",value: toValue(newLayer),});-- onEditLayer(index, { type: "layers", value: [newLayer] }, options);+ onEditLayer(index, layers, options);};return (