Skip to content

feat(radio): support no one checked state #5364

@ice6

Description

@ice6

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

it is quite easy to make radio unchecked here(https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/input/radio)

Image

remove the checked attribute, you get a ui with no one option checked:

Image

but int the Radio compnent, it seems that there is no way to achieve this.

Describe the solution you'd like

when TValue is nullable(string?/int?..../T?) and the value is null, no on should be checked.

Additional context

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions