xamarin/Xamarin.Forms

[Bug] [iOS] TableView cells Tapped event doesn't work if cell contains ContextActions

Open

#8,243 opened on Oct 25, 2019

 (2 comments) (1 reaction) (0 assignees)C# (1,926 forks)batch import
a/listviewe/3 :clock3:help wantedinactivep/iOS 🍎t/bug :bug:up-for-grabs

Repository metrics

Stars
 (5,644 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Description

If I create a TableView and put a TextCell inside with a Tapped event handler. The Tapped event handler works fine. If I add a ContextAction to that cell, the Tapped event handler is NOT called. However, if you tap exactly on the divider in between the cells, the Tapped event handler IS called. Therefore, I think the ContextAction is adding some invisible View on top of the entire cell that is blocking user input.

Steps to Reproduce

Run the attached sample program and tap the cell and verify no "Tapped" event is written to the Console.

Expected Behavior

Tapped event handler works regardless of presence of ContextActions

Actual Behavior

Tapped event handler doesn't work.

Basic Information

3.6:

  • Version with issue: 3.6.0.709228
  • Last known good version: 3.6.0.539721 4.0:
  • Version with issue: 4.0.0.709238
  • Last known good version: 4.0.0.618610 4.1:
  • Version with issue: 4.1.0.709244
  • Last known good version: 4.1.0.673156 4.2:
  • Version with issue: all 4.2.0.XXX
  • Last known good version: none 4.3:
  • Version with issue: all 4.3.0.XXX
  • Last known good version: none

Reproduction Link

TestForms.zip

Contributor guide