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

Control event propagation? #7332

Closed
josipx opened this issue May 19, 2022 · 3 comments
Closed

Control event propagation? #7332

josipx opened this issue May 19, 2022 · 3 comments
Labels
legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor platform/android 🤖 s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working

Comments

@josipx
Copy link

josipx commented May 19, 2022

Description

I have simple MAUI app with ContentPage containing Button with overlaying Grid control, e.g.:

 <Button VerticalOptions="Start"
            BackgroundColor="red"
            Clicked="Button_OnClicked"
            HeightRequest="100"
            Text="View 4"
            WidthRequest="100" />
<Grid BackgroundColor="#66000000" />

I would expect that Grid control overlays Button therefore events (e.g. Button click) are not triggered on underlying control. This is not the case in the latest RC3 version. I tested similar scenario in XF 5 and it works as expected (button click event is not triggered). I also tried all sorts of scenarios with InputTransparent property on controls, with no success.

image

Steps to Reproduce

  1. Create new MAUI app
  2. Add simple ContentPage with:

<Button VerticalOptions="Start" BackgroundColor="red" Clicked="Button_OnClicked" HeightRequest="100" Text="View 4" WidthRequest="100" /> <Grid BackgroundColor="#66000000" />

and click eventhandler on Page Cs code, e.g.:

private async void Button_OnClicked(object sender, EventArgs e)
{
await DisplayAlert("Message", "Button click event", "OK");
}

Because Grid overlays (hides) Button control click event should not trigger.

Version with bug

Release Candidate 3 (current)

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 12, API 31, emulator

Did you find any workaround?

No response

Relevant log output

No response

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

repro with vs main build(32519.297.main)

@VincentBu VincentBu 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 May 20, 2022
@mattleibow
Copy link
Member

Duplicate of #10252

@mattleibow mattleibow marked this as a duplicate of #10252 Mar 28, 2023
@mattleibow
Copy link
Member

May be fixed in #13725

@ghost ghost locked as resolved and limited conversation to collaborators Apr 27, 2023
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/android 🤖 s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants