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

Fix TapGestureRecognizer disregards parent's IsEnabled status #22578

Conversation

BlotskiyDmitriy
Copy link

Description of Change

When calling the IsEnabled property, the container parent is checked because it is not equal to what is in other controls.
For example. The parent of the Grid is the UIResponder, and the parent of the Button is the UIControl.
Previously, for this reason, the IsEnabled property was not changed for any container.

Issues Fixed

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

Fixed for: layouts except frame on iOS and Catalyst.

Fixes #

#18995

Branch: main

@BlotskiyDmitriy BlotskiyDmitriy requested a review from a team as a code owner May 22, 2024 13:30
@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label May 22, 2024
Copy link
Contributor

Hey there @BlotskiyDmitriy! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@jsuarezruiz
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@jsuarezruiz jsuarezruiz requested review from PureWeen and mattleibow and removed request for jfversluis June 11, 2024 09:29
@Redth
Copy link
Member

Redth commented Jun 14, 2024

Appreciate the PR, but we are going to approach this in a slightly different way. #23049 takes an approach that is more similar to how Android works, and declines to surface the touch event in the gesture manager when the control is disabled (which may fix other touch gesture related scenarios that should not fire when the control is disabled too).

@Redth Redth closed this Jun 14, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jul 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-gestures Gesture types community ✨ Community Contribution platform/iOS 🍎
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants