Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] Calling Focus on an input field does not bring up keyboard in iOS. #8952

Open
Nathan-Coit-FP opened this issue Dec 18, 2019 · 1 comment
Labels
e/4 🕓 4 p/iOS 🍎 t/bug 🐛 up-for-grabs We welcome community contributions to any issue, but these might be a good place to start!

Comments

@Nathan-Coit-FP
Copy link

Description

Calling focus from code behind on an input element (Entry, DatePicker, TimePicker) does not display the keyboard to the user. Element is still focused, and manually tapping the element after this does not bring up the keyboard either as the element still has focus.
Works as expected in Android, but not iOS.

Steps to Reproduce

  1. Create two entry fields.
  2. Add an Focused event to the first entry that calls Focus() on the second Entry.
  3. Tap the first Entry field.

Expected Behavior

Second Entry field receives focus and displays the keyboard for typing.

Actual Behavior

Second Entry field receives focus, but no keyboard is displayed. Tapping the second entry again does not display the keyboard either since the entry still has focus.

Basic Information

  • Version with issue: 4.3.0.908675
  • IDE: Visual Studio 2019 16.4
  • Platform Target Frameworks:
    • iOS: 13.2
    • Android: 9.0
  • Nuget Packages: Xamarin.Forms, Xamarin.Essentials

Screenshots

image

Reproduction Link

https://github.com/Nathan-Coit/XamarinFocusKeyboardSample

@Nathan-Coit-FP Nathan-Coit-FP added s/unverified New report that has yet to be verified t/bug 🐛 labels Dec 18, 2019
@hartez hartez self-assigned this Jan 2, 2020
@hartez hartez added e/4 🕓 4 and removed s/unverified New report that has yet to be verified labels Jan 2, 2020
@samhouts samhouts added inactive Issue is older than 6 months and needs to be retested help wanted We welcome community contributions to any issue, but these might be a good place to start! up-for-grabs We welcome community contributions to any issue, but these might be a good place to start! and removed inactive Issue is older than 6 months and needs to be retested help wanted We welcome community contributions to any issue, but these might be a good place to start! labels Jul 17, 2020
@samhouts samhouts added this to the 5.0.0 milestone Aug 13, 2020
@samhouts samhouts removed this from the 5.0.0 milestone Nov 2, 2020
@byte7-ra
Copy link

byte7-ra commented Feb 1, 2022

Stuck in the same problem. Any workaround?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
e/4 🕓 4 p/iOS 🍎 t/bug 🐛 up-for-grabs We welcome community contributions to any issue, but these might be a good place to start!
Projects
None yet
Development

No branches or pull requests

4 participants