Skip to content

Commit 69f7c11

Browse files
committed
fix: adjust default step value in numeric control to handle both integer and number types
1 parent ba04091 commit 69f7c11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/web/src/jsonforms/composables/controls/useNumericControl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const resolveNumericStep = (
77
schema: JsonSchema | undefined,
88
options?: Options,
99
): number => {
10-
const defaultStep = schema?.type === 'integer' ? 1 : 0.1
10+
const defaultStep = schema?.type === 'integer' || schema?.type === 'number' ? 1 : 0.1
1111

1212
return options?.step ?? defaultStep
1313
}

0 commit comments

Comments
 (0)