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 hangs app on cancel on MacCatalyst #6623

Closed
agendamatic opened this issue Apr 28, 2022 · 1 comment
Closed

DisplayActionSheet hangs app on cancel on MacCatalyst #6623

agendamatic opened this issue Apr 28, 2022 · 1 comment
Labels
legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor platform/macOS 🍏 macOS / Mac Catalyst t/bug Something isn't working

Comments

@agendamatic
Copy link

agendamatic commented Apr 28, 2022

Description

When using Page.DisplayActionSheet on MacCatalyst, if the user cancels out of the popup the entire app will hang.

Additionally, the popup appears halfway down the right side of the window, pointing to nothing. I'd expect this popup to point to/appear near the UI element that triggered.

This works normally on iOS. I'm not targeting Android. On Windows, there is no popup displayed at all, and the awaited call returns null immediately.

Steps to Reproduce

On a ContentPage in a MAUI app, create a button. Add a handler for the Clicked event. Declare that handler as such:

async void Button_Clicked(object sender, EventArgs e) {
    string result = await DisplayActionSheet("Options", "Cancel", null, new[] { "One", "Two", "Three" });
    System.Diagnostics.Debug.WriteLine($"result: {result}");
}

Run the page on MacCatalyst. Note the location of the popup. Also note that selecting options works as well. Now open the popup and click anywhere on the page to light-dismiss the popup. The app should hang.

Version with bug

Release Candidate 2 (current)

Last version that worked well

Unknown/Other

Affected platforms

macOS

Affected platform versions

MacCatalyst 14.2

Did you find any workaround?

No

Relevant log output

No response

@agendamatic agendamatic added s/needs-verification Indicates that this issue needs initial verification before further triage will happen t/bug Something isn't working labels Apr 28, 2022
@Eilon Eilon added the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label Apr 28, 2022
@jfversluis jfversluis removed the s/needs-verification Indicates that this issue needs initial verification before further triage will happen label May 2, 2022
@Redth
Copy link
Member

Redth commented May 3, 2022

Working here on main, please try again when RC3 is released.

@Redth Redth closed this as completed May 3, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Jun 2, 2022
@samhouts samhouts added the platform/macOS 🍏 macOS / Mac Catalyst label Feb 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor platform/macOS 🍏 macOS / Mac Catalyst t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants