Skip to content

cannot display 0 when input null or undefined (Remove all value on input) #887

@nghiattttttt

Description

@nghiattttttt

I have this problem when remove all data on input.
I want when user remove all data on input it alway set value to 0 and display 0 but cannot do that.
I typing any number on input => remove all data => set to 0 and display 0, But i remove again and focus to other input it display empty with ` props it 0.

This is demo: https://codesandbox.io/p/sandbox/allowleadingzeros-demo-forked-5yhy44

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions