Skip to content

[Regression] RadioButton should support Null Value #32466

@peruchali

Description

@peruchali

Description

Having a RadioButton with Value={x:Null} doesn't work anymore because of #31175 which doesn't allow null values for RadioButtons because coerceValue was added to set Value to the RadioButton itself.

I have a scenario where I add a "Don't know" option to my Radio Button list. This change breaks that and null is no longer accepted as RadioButton value.

This is a regression from MAUI 8

Steps to Reproduce

No response

Link to public reproduction project repository

No response

Version with bug

10.0.0-rc.2

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

.NET 8 (Please specify exact version)

Affected platforms

iOS, Android, Windows, macOS

Affected platform versions

No response

Did you find any workaround?

No workaround

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-controls-radiobuttonRadioButton, RadioButtonGroupi/regressionThis issue described a confirmed regression on a currently supported versionp/0Current heighest priority issues that we are targeting for a release.partner/androidIssues for the Android SDKplatform/iosplatform/windowsregressed-in-9.0.120s/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions