Skip to content

Commit 942ccb0

Browse files
Hakan OrakMartinWeb
Hakan Orak
authored andcommitted
test(NumberInput): type a minus sign in a NumberInput
1 parent a1ed8ef commit 942ccb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/Form/Input/number/src/NumberInput.stories.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const Template: Story<
3030
value={value}
3131
onChange={(e) => {
3232
action('onChange')(e);
33-
setValue(e.value);
33+
setValue(!isNaN(e.value) ? e.value : null);
3434
}}>
3535
<Help>tooltip avec du text</Help>
3636
</NumberInput>

0 commit comments

Comments
 (0)