This repository has been archived by the owner on May 1, 2024. It is now read-only.
[Bug] ContextAction Button on ListView Cell on iOS passes Tap to Cell when CanExecute is false #8763
Labels
a/listview
Problems with the ListView/TableView
e/2 🕑
2
good first issue
hacktoberfest 🍻
help wanted
We welcome community contributions to any issue, but these might be a good place to start!
in-progress
This issue has an associated pull request that may resolve it!
t/bug 🐛
up-for-grabs
We welcome community contributions to any issue, but these might be a good place to start!
Description
When you add a ItemTapped event to a ListView and fill it's ViewCells ContextActions with a MenuItem whose Commands CanExecute is false, then tapping that ContextActions button on iOS will simply pass the tap to the underlying ViewCell.
This seems like a bug to us, tapping a disabled button at that point should simply not do anything at all.
Steps to Reproduce
Expected Behavior
The ItemTapped on the ListView should not be fired.
Actual Behavior
The ItemTapped on the ListView is fired.
Basic Information
Reproduction Link
https://github.com/BasileusBasileon/Xamarin-ListView-ContextAction-iOS-Bug
The text was updated successfully, but these errors were encountered: