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

[iOS] Tap gesture recognizer fires tap event for a label when the label is disabled #23453

Closed
smegleyshire2 opened this issue Jul 5, 2024 · 2 comments
Labels
area-gestures Gesture types platform/iOS 🍎 t/bug Something isn't working

Comments

@smegleyshire2
Copy link

smegleyshire2 commented Jul 5, 2024

Description

I have attached a small demo app. Screenshot from Android emulator:

image

Two labels - one has IsEnabled="true" and the other has IsEnabled="false":
Tap the Enabled label and the upper of the two counters increment on both Android and iOS.
Tap the Disabled label and the lower of the two counters increments on iOS only. On Android, it behaves as I'd expect it to (and did in Xamarin forms for both platforms) and doesn't increment.

Steps to Reproduce

See description above

Link to public reproduction project repository

https://github.com/smegleyshire2/MauiBugDemoApp2

Version with bug

8.0.61 SR6.1

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

Affected platform versions

iOS 17.5

Did you find any workaround?

Workaround is to check the IsEnabled state of the label in the tap handler and do nothing if it is false.

Relevant log output

No response

@smegleyshire2 smegleyshire2 added the t/bug Something isn't working label Jul 5, 2024
Copy link
Contributor

github-actions bot commented Jul 5, 2024

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@kubaflo
Copy link
Contributor

kubaflo commented Jul 6, 2024

Fixed by #23049

@kubaflo kubaflo closed this as completed Jul 6, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Aug 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-gestures Gesture types platform/iOS 🍎 t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants