Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Can't programmatically open keyboard on iOS 13.1.3 #2085

Closed
1 of 4 tasks
masimplo opened this issue Oct 23, 2019 · 3 comments
Closed
1 of 4 tasks

bug: Can't programmatically open keyboard on iOS 13.1.3 #2085

masimplo opened this issue Oct 23, 2019 · 3 comments

Comments

@masimplo
Copy link

masimplo commented Oct 23, 2019

Bug Report

Capacitor Version

npx cap doctor output:

Installed Dependencies:

  @capacitor/cli 1.2.1
  @capacitor/core 1.2.1
  @capacitor/android 1.2.1
  @capacitor/ios 1.2.1
    @byteowls/capacitor-oauth2 (1.0.1)
    capacitor-analytics (0.0.4)
    capacitor-fcm (0.1.0)
    cc.fovea.cordova.purchase (8.1.1)
    cordova-launch-review (3.1.1)
    cordova-plugin-appsflyer-sdk (4.4.22)
    cordova-plugin-badge (0.8.8)
    cordova-plugin-call-number (1.0.1)
    cordova-plugin-camera (4.1.0)
    cordova-plugin-globalization (1.11.0)
    cordova-plugin-x-socialsharing (5.6.0)
    cordova-sms-plugin (1.0.0)
    cordova-sqlite-storage (3.4.0)
    es6-promise-plugin (4.2.2)
    skwas-cordova-plugin-datetimepicker (2.0.1)

Affected Platform(s)

  • Android
  • iOS
  • Electron
  • Web

Current Behavior

  1. Add an ion-input on a page
  2. Call focus on the input
@ViewChild('input') input: ElementRef<HTMLInputElement>;

ngAfterViewInit() {
    setTimeout(() => this.input.nativeElement.focus(), 500);
}
  1. Run the app on an actual iPhone
  2. Nothing happens. BUT if you switch to another app and come back to the your app, the input gets focus.

The same happens when calling setFocus on an ion-searchbar component.

Expected Behavior

The input should get focus when focus() is called.

Sample Code or Sample Application Repo

Reproduction Steps

Other Technical Details

npm --version output:
6.11.3
node --version output:
v10.16.1
pod --version output (iOS issues only):
1.8.3

Other Information

@jcesarmobile
Copy link
Member

It's already fixed, but not released yet #1995

@maxime-guyot
Copy link

maxime-guyot commented Oct 25, 2019

I'have upgrade to capacitor 1.3, focus element don't show the keyboard on ios13 🤔

@dabaaaz
Copy link

dabaaaz commented Oct 28, 2019

same same :/

@ionic-team ionic-team locked as resolved and limited conversation to collaborators Oct 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants