Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dialog box for method DisplayPromptAsync is displayed abnormally in windows machine #7650

Closed
jessiezh0320 opened this issue Jun 1, 2022 · 5 comments
Labels
area-controls-dialogalert DisplayAlert, dialog platform/windows 🪟 s/triaged Issue has been reviewed s/try-latest-version Please try to reproduce the potential issue on the latest public version s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working

Comments

@jessiezh0320
Copy link

Description

Dialog box for method DisplayPromptAsync is displayed abnormally in windows machine.

But it all works on android device.

Steps to Reproduce

  1. create a new maui app

  2. add a button in MainPage(e.g. Go to Next Page) and add Clicked event for this button

    <Button  Text="Go to Next Page" Clicked="Button_Clicked" />
    
     private void Button_Clicked(object sender, EventArgs e)
      {
     Application.Current.OpenWindow(new Window()
     {
     	Page = new NewTournamentPage()
     });
     }
    
  3. create a new page NewTournamentPage, then add a button (add)on this page and add Clicked event for this button

      <Button   Text="add"  Clicked="Button_Clicked"/>
    
       private async void  Button_Clicked(object sender, EventArgs e)
     {
     string name = await this.DisplayPromptAsync("Add new Player", "Name:");
    
     Debug.WriteLine("-----------newPlayerName=  " + name);
    }
    
  4. click button add on page NewTournamentPage ,then Prompt will pop up, and after we input some name for the Prompt, click Ok button, then the Prompt will dismiss and we can get the input name correctly,but at the same time, another Prompt will popup.
    And if we input some string, we can not get the input correctly.

    Besides, If we just try it a few more times, the Prompt will display on MainPage not page NewTournamentPage.

image

Version with bug

6.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

Microsoft Visual Studio Enterprise 2022 (64-bit) - Preview Version 17.2.0 Preview 6.0

Did you find any workaround?

No response

Relevant log output

No response

@jessiezh0320 jessiezh0320 added s/needs-verification Indicates that this issue needs initial verification before further triage will happen t/bug Something isn't working labels Jun 1, 2022
@kristinx0211 kristinx0211 added s/verified Verified / Reproducible Issue ready for Engineering Triage and removed s/needs-verification Indicates that this issue needs initial verification before further triage will happen labels Jun 1, 2022
@kristinx0211
Copy link

verified repro on widows. repro project:
7650.zip

@Eilon Eilon added the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label Jun 1, 2022
@jsuarezruiz jsuarezruiz added the area-controls-dialogalert DisplayAlert, dialog label Jun 14, 2022
@samhouts samhouts removed the s/verified Verified / Reproducible Issue ready for Engineering Triage label Apr 5, 2023
@XamlTest XamlTest added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels May 12, 2023
@XamlTest
Copy link

XamlTest commented May 12, 2023

Verified this on Visual Studio Enterprise 17.6.0 Preview 7.0. This issue does not repro on Android 13.0, repro on Windows 11 with below Project:
7650.zip

Windows:
DisplayPromptAsync

@samhouts samhouts added this to the Backlog milestone May 12, 2023
@ghost
Copy link

ghost commented May 12, 2023

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.

@japarson
Copy link
Contributor

Hi @jessiezh0320, are you able to repro this issue with the latest version of MAUI? I was not able to:
no_repro

@japarson japarson added the s/try-latest-version Please try to reproduce the potential issue on the latest public version label Mar 20, 2024
Copy link
Contributor

Hi @jessiezh0320. We have added the "s/try-latest-version" label to this issue, which indicates that we'd like you to try and reproduce this issue on the latest available public version. This can happen because we think that this issue was fixed in a version that has just been released, or the information provided by you indicates that you might be working with an older version.

You can install the latest version by installing the latest Visual Studio (Preview) with the .NET MAUI workload installed. If the issue still persists, please let us know with any additional details and ideally a reproduction project provided through a GitHub repository.

This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@dotnet-policy-service dotnet-policy-service bot removed this from the Backlog milestone Mar 27, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Apr 27, 2024
@Eilon Eilon removed the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label May 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-dialogalert DisplayAlert, dialog platform/windows 🪟 s/triaged Issue has been reviewed s/try-latest-version Please try to reproduce the potential issue on the latest public version s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants