Skip to content

[BUG] Buttons not firing inside Layout that has a TouchBehavior #2385

Closed

Description

@bricefriha

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

Current Behavior

When we tap on the button, there is no animation or touch registration. It's as if the input transparency was disabled.

At first, I thought it was similar to #1853, but they don't seem related

Expected Behavior

We should be able to press the button inside the layout that is affected by TouchBehavior

Steps To Reproduce

Repro without the Sample:

  1. Add a Layout (Grid, Stacklayout, etc) with a TouchBehavior:
 <VerticalStackLayout.Behaviors>
     <toolkit:TouchBehavior />
 </VerticalStackLayout.Behaviors>
  1. Add a button inside this one
  2. press the button

Using the Sample:

  1. Open the sample
  2. Press the "Click me" button

Link to public reproduction project repository

https://github.com/bricefriha/MCT_sample_issue_touchbehavior

Environment

- .NET MAUI CommunityToolkit: 9.1.1
- OS: Android 14, iOS 18.1
- .NET MAUI: 9

Anything else?

No response

Activity

  1. locked and limited conversation to collaborators on Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions