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.

reduce debounce, because it makes it too slow for select changes

Oleg Isonen9105a5273a99
diff --git a/apps/designer/app/designer/features/props-panel/use-props-logic.ts b/apps/designer/app/designer/features/props-panel/use-props-logic.ts
index f388597a7e..7f1e3a5a72 100644
--- a/apps/designer/app/designer/features/props-panel/use-props-logic.ts
+++ b/apps/designer/app/designer/features/props-panel/use-props-logic.ts
@@ -85,6 +85,7 @@ export const usePropsLogic = ({
}>({});
// @todo this may call the last callback after unmount
+ // @todo we don't need to debounce change events on select for instance, so debounce is only needed on text inputs
const updateProps = debounce((updates: UserPropsUpdates["updates"]) => {
publish<"updateProps", UserPropsUpdates>({
type: "updateProps",
@@ -98,7 +99,7 @@ export const usePropsLogic = ({
for (const update of updates) {
delete propsToPublishRef.current[update.id];
}
- }, 1000);
+ }, 100);
const deleteProp = (id: UserProp["id"]) => {
publish<"deleteProp", DeleteProp>({