Skip to content

Setting progress element value to 0 is removed from the markup #6704

Closed
@ScottDowne

Description

@ScottDowne

Seems like <progress max="5" value="0"/> isn't working as expected.

Here it is in regular HTML: https://jsfiddle.net/a4zx1oq2/

Expected: rendered an empty progress bar.

In react however, it's rendered as https://jsfiddle.net/6xsnLaey/1/

I noticed however, setting the value to 0 in componenetDidMount seems to get around this bug, same with using -0

Here it is in react: https://jsfiddle.net/69z2wepo/40939/

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