Skip to content

Input type="number", when initial value is "0" or 0, and value changes to empty string "", value does not update #9884

@brendon-codes

Description

@brendon-codes

Example of bug here:
https://jsfiddle.net/69z2wepo/80380/

My best guess is that maybe React is doing some truthiness checking which thinks that 0 is the same as "", so it is not updating the value of the component.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions