fix(decimal-input): Preserve zero value display#524
Conversation
Previously, a value of `0` in the DecimalInput component would be cleared when the input lost focus, even if the `keepZeroOnBlur` prop was set to `true`. This change ensures that `0` is properly formatted and displayed, aligning with the intended behavior of the `keepZeroOnBlur` prop.
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
You edited main shared component |
Bug: if you enter '0' (unlimited)

it disappears when user reopens the dialog:

This fix should handle it