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: focus spacing input when popover opens (#6374)

Oleg Isonen2aec79774e6e
diff --git a/apps/builder/app/builder/features/style-panel/sections/shared/input-popover.tsx b/apps/builder/app/builder/features/style-panel/sections/shared/input-popover.tsx
index 78235130da..5f94534e3b 100644
--- a/apps/builder/app/builder/features/style-panel/sections/shared/input-popover.tsx
+++ b/apps/builder/app/builder/features/style-panel/sections/shared/input-popover.tsx
@@ -54,6 +54,7 @@ const Input = ({
intermediateValue={intermediateValue}
getOptions={() => $availableUnitVariables.get()}
fieldSizing="content"
+ autoFocus
onChange={(styleValue) => {
setIntermediateValue(styleValue);
const activeProperties = getActiveProperties();