xamarin/Xamarin.Forms

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

Aperta

#8243 aperta il 25 ott 2019

 (2 commenti) (1 reazione) (0 assegnatari)C# (1926 fork)batch import
a/listviewe/3 :clock3:help wantedinactivep/iOS 🍎t/bug :bug:up-for-grabs

Metriche repository

Star
 (5644 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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

Guida contributor