TapGestureRecognizer disregards parent's IsEnabled status on iOS and Catalyst. #18995
Labels
area-gestures
Gesture types
fixed-in-8.0.70
fixed-in-9.0.0-preview.6.24327.7
migration-compatibility
Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert
platform/iOS 🍎
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
A TapGestureRecognizer will not obey the IsEnabled status of its parent on iOS and Catalyst. It will register touch actions and trigger its Tapped method. Do not happen on Android. Not tested on Windows.
Steps to Reproduce
The "Click me too" button (composed by a Grid, a BoxView and a Label) under the normal Button should not be clickable, but it is.
Link to public reproduction project repository
https://github.com/derlidio/TapGestureBug.git
Version with bug
8.0.3
Is this a regression from previous behavior?
Yes, this used to work in Xamarin.Forms
Last version that worked well
Unknown/Other
Affected platforms
iOS, macOS
Affected platform versions
iOS 17, macOS Sonoma 14.1.1 (23B81)
Did you find any workaround?
No workaround besides checking for the control IsEnabled state on it's Tapped method.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: