[Android,Windows]When the parent's IsEnabled Property is set to false, the touch of the child is getting triggered.
Description
I created a stacklayout and changed the value of the isEnabled property to false. As a child of the stacklayout, I've added a button inside the stacklayout.After clicking the button the button clicked event is getting triggered.touch interaction should not occur for the child if the parent's element is set to isEnabled to false.
Steps to Reproduce
1.Run sample. 2.Click the button. Observed behavior-> after clicking the button,button clicked event will be trigerred.
Link to public reproduction project repository
Version with bug
6.0 Release Candidate 2 or older
Last version that worked well
6.0 Release Candidate 2 or older
Affected platforms
Android, Windows
Affected platform versions
all platforms
Did you find any workaround?
I have set inputTransparent property to true to resolve the issue.
Relevant log output
No response
I noticed the same behaviour for Grid. This issue is present from a long time now.
Is this a bug or is it intentional? What is the use of the IsEnabled property in a layout?
Hi @RiyashameedM. We have added the "s/try-latest-version" label to this issue, which indicates that we'd like you to try and reproduce this issue on the latest available public version. This can happen because we think that this issue was fixed in a version that has just been released, or the information provided by you indicates that you might be working with an older version.
You can install the latest version by installing the latest Visual Studio (Preview) with the .NET MAUI workload installed. If the issue still persists, please let us know with any additional details and ideally a reproduction project provided through a GitHub repository.
This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.
Hi, @RiyashameedM - this should be fixed in the upcoming .NET 8 release, as per https://github.com/dotnet/maui/pull/12488! Feel free to reopen if you continue to have issues