xamarin/Xamarin.Forms

[Bug] [iOS] Button inside a ScrollView does not work when keyboard is up.

开放

#6,409 创建于 2019年6月4日

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

仓库指标

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

描述

Description

If a Button is inside a ScrollView and the keyboard is showing, tapping the button will not trigger the button's command. Through testing it appears that the Button.Pressed event IS fired, but the Button.Released and Button.Clicked events ARE NOT fired.

Note: The odd behavior is only evident when the button is moved from it's original position via scrolling while the keyboard is up.

This bug was reported and acknowledged on bugzilla but does not appear to have been moved to github: https://bugzilla.xamarin.com/show_bug.cgi?id=59113

Steps to Reproduce

  1. Create a ScrollView.
  2. Create a TextField and Button inside the ScrollView.
  3. Add a Command to the button.
  4. Launch the app and focus the TextField so the keyboard appears.
  5. Scroll so that the button is visible (or simply scroll to move the button to a new position).
  6. Tap the button.

Expected Behavior

When the button is tapped the command should trigger.

Actual Behavior

When the button is tapped the keyboard disappears but the button command does not trigger.

Basic Information

  • Version with issue:
  • Last known good version:
  • IDE:
  • Platform Target Frameworks:
    • iOS:
    • Android:
    • UWP:
  • Android Support Library Version:
  • Nuget Packages:
  • Affected Devices:

Reproduction Link

See: https://bugzilla.xamarin.com/show_bug.cgi?id=59113

贡献者指南