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

DisplayActionSheet still not working on Windows #14098

Closed
R-J-Turner opened this issue Mar 21, 2023 · 5 comments
Closed

DisplayActionSheet still not working on Windows #14098

R-J-Turner opened this issue Mar 21, 2023 · 5 comments
Labels
area-controls-dialogalert DisplayAlert, dialog platform/windows 🪟 s/needs-repro Attach a solution or code which reproduces the issue t/bug Something isn't working

Comments

@R-J-Turner
Copy link

Description

When attempting to show an action sheet, it works fine on Android, but the code is skipped over completely on Windows.

This is the same issue as logged in #7025, which is marked as fixed, but the issue is still occurring on my version (7.0.59).

Steps to Reproduce

  1. Create a new MAUI App.

  2. Add the following code to the main page:
    Shell.Current.DisplayActionSheet("Return Reason", "Cancel", null, "OK");

  3. Build the app and run it in Windows, the actionsheet will not be displayed.

  4. Repeat for Android, the action sheet will display as intended.
    N.B. Other alerts (such as DisplayAlert) work fine on both platforms.

Link to public reproduction project repository

N/A

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

Windows 10

Did you find any workaround?

No

Relevant log output

No response

@R-J-Turner R-J-Turner added the t/bug Something isn't working label Mar 21, 2023
@jsuarezruiz
Copy link
Contributor

From where are you trying to display the ActionSheet (constructor, etc)?

@ghost ghost added the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label Mar 21, 2023
@R-J-Turner
Copy link
Author

I'm calling it from an event handler on a page. All the other "alerts" (i.e. DisplayAlert) work fine in the same position. The issue only occurs on Windows, it works fine in Android.

@drasticactions drasticactions added the s/needs-repro Attach a solution or code which reproduces the issue label Mar 21, 2023
@ghost
Copy link

ghost commented Mar 21, 2023

Hi @R-J-Turner. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md

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.

@R-J-Turner
Copy link
Author

I've tried to replicate this in a few scenarios outside of my original code, and can't seem to be able to. I then restructured my code and was able to get this working correctly.

@ghost ghost locked as resolved and limited conversation to collaborators Apr 21, 2023
@samhouts
Copy link
Member

samhouts commented Aug 4, 2023

Duplicate of #14829

@samhouts samhouts marked this as a duplicate of #14829 Aug 4, 2023
@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/needs-repro Attach a solution or code which reproduces the issue t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants