You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current behavior:
Using setFocus() is not setting focus on the input on my USB connected device in iOS 13.1.3. However it does work in the iPhone Simulator. Both in the native Safari browser and in my app. The Simulator is using 13.1 not 13.1.3.
Expected behavior:
Using setFocus() should set focus on the input in iOS 13.1.3.
Related code:
This code is fired when clicking a button. The console logs the correct <ion-input> but the focus isn't getting set.
I've also tried using this.$refs.input.querySelector('input').focus() and that doesn't work as well. I'm not sure if this is only related to ionic, but I can't seem to find any solution.
The text was updated successfully, but these errors were encountered:
In case you didn’t figure it out yet: You can just remove the setTimeout and just fire this.$refs.input.setFocus() directly on click, which should work fine.
The actual underlying issue is somewhere in the webview implementation, that doesn’t allow pulling up the keyboard without direct user interaction - so its really an issue related to Capacitor/Cordova/WKWebView.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Bug Report
Ionic version:
[@ionic/core] 4.11.1
[@ionic/vue] 0.0.9
Current behavior:
Using
setFocus()
is not setting focus on the input on my USB connected device in iOS 13.1.3. However it does work in the iPhone Simulator. Both in the native Safari browser and in my app. The Simulator is using 13.1 not 13.1.3.Expected behavior:
Using
setFocus()
should set focus on the input in iOS 13.1.3.Related code:
This code is fired when clicking a button. The console logs the correct
<ion-input>
but the focus isn't getting set.I've also tried using
this.$refs.input.querySelector('input').focus()
and that doesn't work as well. I'm not sure if this is only related to ionic, but I can't seem to find any solution.The text was updated successfully, but these errors were encountered: