iOS: Button inside ScrollViewer inside Button Click issue #19145
Labels
difficulty/medium 🤔
Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI
kind/bug
Something isn't working
platform/ios 🍎
Categorizes an issue or PR as relevant to the iOS platform
project/input ⌨️
Categorizes an issue or PR as relevant to input (Button, CheckBox, Toggle, Scroll, Map, Numeric,...)
Current behavior
In iOS only (Android & Windows are okay), I have a setup where a button is inside a ScrollViewer, which in turn is inside another button:
Outer Button
--> ScrollViewer
------> TextBlock
------> Inner Button
When I click in an empty area, the outer button receives the click, but if I click on an inner TextBlock (or any control), it blocks the click. However, if I remove the inner button, the TextBlock no longer blocks the clicks from reaching the outer button.
Expected behavior
The outer button should keep receiving click events even when clicking on the TextBlock with the presence of the inner button beside it.
How to reproduce it (as minimally and precisely as possible)
Run the minimal repro project, click on 'CLICK HERE', notice that the console does not print '>> Main button clicked' (or hit breakpoint), but if you click on an empty area then the message is printed. However, if you comment out the button 'PART_RemoveButton' and rerun the project, then tapping on 'CLICK HERE' does cause the outer button to receive the click event and print the message.
Minimal repro project:
UnoApp3.zip
Workaround
Remove inner button 'PART_RemoveButton'
Works on UWP/WinUI
Yes
Environment
Uno.UI / Uno.UI.WebAssembly / Uno.UI.Skia
NuGet package version(s)
Uno.Sdk 5.5.54
Affected platforms
iOS
IDE
Rider macOS
IDE version
2024.3.3
Relevant plugins
No response
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered: