Skip to content

TapGestureRecognizer disregards parent's IsEnabled status on iOS and Catalyst. #18995

@derlidio

Description

@derlidio

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

  1. Clone the attached repo
  2. Build and Run on iOS Simulator or Catalyst

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions