Skip to content

Unable to select 0 with enum checkbox (antd only) #4067

@depra95

Description

@depra95

Prerequisites

What theme are you using?

antd

Version

5.16.1

Current Behavior

When specifying 0 as an enum for an array item, the checkbox cannot be selected. This issue occurs only with antd theme.

Expected Behavior

The item 0 should also be selectable by clicking.

Steps To Reproduce

Try selecting 0 in this playground
I was also able to reproduce this in my environment.

Environment

- OS: debian 11(bullseye)
- Node: 20.10.0
- npm: 10.2.3
- antd: 5.13.1

Anything else?

related: #3716

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds triageInitial label given, to be assigned correct labels and assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions