dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
21.83k stars 1.67k forks source link

RadioButton disabled UI issue - iOS #18668

Open rathanakumarsekar21 opened 8 months ago

rathanakumarsekar21 commented 8 months ago

Description

I'm trying the disable the RadioButton using IsEnabled property. But disabled UI issue is not updating properly in iOS platform.

The same code works fine in Android.

Android:

iOS:

Sample: RadioButtonTest.zip

Steps to Reproduce

  1. Run the attached sample in iOS.
  2. Change the Radiobutton IsEnabled property.

You can see the issue.

Actual behaviour: Disabled UI is not updating in iOS platform.

Link to public reproduction project repository

No response

Version with bug

7.0.101

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

No response

Did you find any workaround?

No

Relevant log output

UI issue. Updated the screenshots.
ghost commented 8 months ago

We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.

XamlTest commented 6 months ago

Verified this on Visual Studio Enterprise 17.9.0 Preview 2(8.0.3). Repro on iOS 17.0 and MacCatalyst, not repro on Windows 11 and Android 14.0-API34 with below Project: RadioButtonTest.zip

dotMorten commented 3 months ago

I'm hitting the same issue - I start out with it disabled, then later enable it based on other input. On iOS only it never actually enables.

acaliaro commented 2 months ago

I have the same problem. A disabled radio button in iOS is displayed as if it were enabled

dustin-wojciechowski commented 1 month ago

When testing against the most recent in main, I see that this was fixed in the sense that gestures from the user are not permitted. Unfortunately, the effect of the color change from black to grey of the stroke, ellipse, and fill of a radiobutton does not occur on ios/maccatalyst. Will work on a PR to include those visual state changes in the default control template of radiobutton.

kubaflo commented 18 hours ago

When testing against the most recent in main, I see that this was fixed in the sense that gestures from the user are not permitted. Unfortunately, the effect of the color change from black to grey of the stroke, ellipse, and fill of a radiobutton does not occur on ios/maccatalyst. Will work on a PR to include those visual state changes in the default control template of radiobutton.

Hi @dustin-wojciechowski, maybe this one will help https://github.com/dotnet/maui/pull/23471 :)