Skip to content

React uncontrolled to controlled input error in challenge settings karma fields #756

@plebe1us

Description

@plebe1us

Number inputs for user karma and comment karma in challenge settings throw uncontrolled to controlled input warnings when entering zero values. The inputs use logical OR which treats zero as falsy, causing the value prop to alternate between defined and undefined states.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions