[Android] Disabled Picker view intercepts GestureRecognizer of parent container #22565
Labels
area-controls-picker
Picker
platform/android 🤖
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
For some reason if I have a disabled
![android](https://private-user-images.githubusercontent.com/7365044/332697794-3e9b609b-23d2-4953-9d75-2290316a80ab.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI0NzQ3NDYsIm5iZiI6MTcyMjQ3NDQ0NiwicGF0aCI6Ii83MzY1MDQ0LzMzMjY5Nzc5NC0zZTliNjA5Yi0yM2QyLTQ5NTMtOWQ3NS0yMjkwMzE2YTgwYWIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgwMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MDFUMDEwNzI2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YTZhMDNkMmQ3MmUyY2I1YTZmYzYxZTA2NTIzMmQxZDViZjRjNWMyOTUwYzZhN2ZlMTNlODE1NWY3ZTAwZjRkOCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.mTq3WPjJ567EZ5E96MKmU5_7wHt5mvNzxZiXNTLO1CU)
Picker
inside aGrid
I cannot use GestureRecognizer attached toGrid
(parent container) with Android, it does not fire if I click directly on Picker, so I assume it intercepts with Picker built-in click listener.In attached screenshot I painted
Grid
to Red color, andPicker
to Gray, and GestureRecognizer is only hit if I click on a Red area.In this example the Grid's GestureRecognizer points to existing method to update the counter and text on the button.
The expected behaviour in short - I should see updated text on a button whenever I click Red or Gray area (parent Grid or Picker view itself), however it does not work on Android. I can trigger GestureRecognizer attached method only if I click directly on Grid (Red area).
Everything works as expected on iOS, the button is updated if I click on any area (Grid or Picker)
Steps to Reproduce
MainPage.xaml
and add a grid with disabled picker beforeButton
from initial template. Add aGestureRecognizer
toGrid
poiniting to existing methodOnCounterClicked
. The file will look likeLink to public reproduction project repository
No response
Version with bug
8.0.40 SR5
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
Android API 34
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: