@defencedigital/react-component-library 3.8.2 and the NumberInput control #3277
-
Hello I am using the NumberInput control within a react project. If I replace 'return 0;' with 'return -1;' it displays -1. The requirement is to display a 0 in the number text input when the currentValue is 0. Does anyone know how I get this to display 0? Thank you. const SetPostScore = () => { <ScoreNumberInput const { spacing } = selectors The code to style the component is here; export const ScoreNumberInput = styled(NumberInput) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @RichardP932 Thanks for the question. I can see the same behaviour in Storybook; I would've expected the component to differentiate between Thanks again! Edit: The issue is #3277 |
Beta Was this translation helpful? Give feedback.
-
Hi @RichardP932 Please try version 3.9.2 which has a fix to make sure initial values of 0 are displayed correctly. Thanks |
Beta Was this translation helpful? Give feedback.
Hi @RichardP932
Please try version 3.9.2 which has a fix to make sure initial values of 0 are displayed correctly.
Thanks