Skip to content
This repository was archived by the owner on Jul 20, 2025. It is now read-only.

Commit e0eed30

Browse files
authored
fix: number input (#117)
1 parent daf1199 commit e0eed30

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/pink-tools-appear.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@babylonlabs-io/bbn-core-ui": patch
3+
---
4+
5+
fix: number input

src/widgets/form/NumberField/NumberField.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export function NumberField({
5151
return (
5252
<FormControl label={label} className={controlClassName} state={fieldState} hint={fieldHint}>
5353
<Input
54-
inputMode="numeric"
54+
inputMode="decimal"
5555
pattern="^-?\d*\.?\d*$"
5656
ref={ref}
5757
value={value}

0 commit comments

Comments
 (0)