xamarin/Xamarin.Forms

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

开放

#8,243 创建于 2019年10月25日

 (2 条评论) (1 个反应) (0 位负责人)C# (1,926 个派生)batch import
a/listviewe/3 :clock3:help wantedinactivep/iOS 🍎t/bug :bug:up-for-grabs

仓库指标

星标
 (5,644 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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

贡献者指南