CommunityToolkit / CommunityToolkit/Maui
[BUG] Buttons not firing inside Layout that has a TouchBehavior
- Dominant language
- C#
- Stars
- 2.7k
- Forks
- 500
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 7
Description
### Is there an existing issue for this?
- [x] I have searched the existing issues
### Did you read the "Reporting a bug" section on Contributing file?
- [x] I have read the "Reporting a bug" section on Contributing file: https://github.com/CommunityToolkit/Maui/blob/main/CONTRIBUTING.md#reporting-a-bug
### Current Behavior
COPIED FROM #2385
When we tap on the button, there is no animation or touch registration. It's as if the input transparency was disabled.
### Expected Behavior
COPIED FROM #2385
We should be able to press the button inside the layout that is affected by TouchBehavior.
### Steps To Reproduce
## With repro repo:
1. Open and run solution from reproduction repository
2. Click the button
#### Expected behavior:
Button click is triggered
#### Actual behavior:
Touch command is triggered
## Without repro repo
1. Add a Layout (Grid, Stack etc)
2. Add touch behavior to layout
3. Add button inside layout
4. Click the button
#### Expected behavior:
Button click is triggered
#### Actual behavior:
Touch command is triggered
### Link to public reproduction project repository
https://github.com/erikhornstrom/MauiBugs
### Environment
```markdown
- .NET MAUI CommunityToolkit: 11.2.0
- OS: Android 11
- .NET MAUI: 9
```
### Anything else?
Original issue that was fixed but seems to have been unfixed along the way: #2385
Contributor guide
Assessment
This issue has not been assessed yet.