A button placed under another view cannot be tapped/clicked on iOS and MacCatalyst #15913
Labels
area-controls-button
Button, ImageButton
partner
Issue or Request from a partner team
platform/iOS 🍎
t/bug
Something isn't working
Milestone
Description
A button placed under another view cannot be tapped/clicked on
iOS
andMacCatalyst
.For example:
Expected Behavior:
The button reacts to the interaction - the
Clicked
event is fired and an alert is shown.Actual Behavior
The button does not react to interaction - the
Clicked
event is not fired - oniOS
andMacCatalyst
.Steps to Reproduce
Other Observations
There seems to be some inconsistency between the behavior on the different platforms about how click/tap events are passed with respect to the Background of the layout.
On Windows, for example, the Click is received by the button only if the Background property of the overlaying Grid is not explicitly set. If the property is set, even to Transparent, the Clicked event is not fired as the click/tap seems to be intercepted by the Grid.
On Android, the Clicked event is raised regardless of the value of the Background property.
On Mac/iOS, the Clicked event is never raised, regardless of the Background of the Grid.
Link to public reproduction project repository
https://github.com/telerik/ms-samples/tree/main/Maui/CannotInteractWithButtonUnderneathView
Version with bug
7.0.59
Last version that worked well
Unknown/Other
Affected platforms
iOS, macOS
Affected platform versions
iOS 16
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: