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
22.12k stars 1.73k forks source link

DisplayPromptAsync colors the background gray when entering values #21499

Open datoml opened 6 months ago

datoml commented 6 months ago

Description

If you use the DisplayPromptAsync method to enter values, the background of the page turns gray and remains gray. It is easily reproducible. Simply create a standard MauiApplication and enter the following code in the MainPage.xaml.cs in the OnCounterClicked method.

string result = await DisplayPromptAsync(
    "title",
    "Description",
    accept: "Ok",
    cancel: "Cancel",
    placeholder: "Foo",
    initialValue: "Foo");

After entering some values, the background turns gray and even more gray after closing the dialog.

Screenshot_1711630108 Screenshot_1711630111 Screenshot_1711630117 Screenshot_1711630120

Steps to Reproduce

  1. Create new .NET MAUI Application.
  2. Open MainPage.xaml.cs and enter the following code provided below in the OnCounterClicked method.
  3. Enter values in the dialog
    string result = await DisplayPromptAsync(
    "title",
    "Description",
    accept: "Ok",
    cancel: "Cancel",
    placeholder: "Foo",
    initialValue: "Foo");

Link to public reproduction project repository

No response

Version with bug

8.0.10 SR3

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

ninachen03 commented 6 months ago

Verified this issue with Visual Studio 17.10.0 preview2 (8.0.7 & 8.0.14). Can repro on android platform

dwholmesphd commented 3 months ago

I have the identical issue with Visual Studio 17.9.6 (8.0.61 and prior). Issue appears when using the Android Emulator, but isn't present on an Android local device (Samsung Galaxy S23 Ultra) either in Debug or Deployment. As such, seems like an Emulator issue at least in my case.