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.

use js file extension

Sultanfed6723820ec
diff --git a/app/shared/design-system/components/primitives/numericGestureControl.tsx b/app/shared/design-system/components/primitives/numericGestureControl.js
similarity index 97%
rename from app/shared/design-system/components/primitives/numericGestureControl.tsx
rename to app/shared/design-system/components/primitives/numericGestureControl.js
index 30dc7921c4..d5ce5c2ee4 100644
--- a/app/shared/design-system/components/primitives/numericGestureControl.tsx
+++ b/app/shared/design-system/components/primitives/numericGestureControl.js
@@ -11,7 +11,7 @@
export const numericGestureControl = (targetNode, {
initialValue = 0,
direction = 'horizontal',
- onValueChange,
+ onValueChange = ({}) => null,
}) => {
const eventNames = [ 'pointerup', 'pointerdown', 'pointermove' ];
const state = { type: '', value: initialValue, cursor: direction === 'horizontal' ? 'ew-resize' : 'ns-resize' };