-
Notifications
You must be signed in to change notification settings - Fork 1k
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
fix(android): move initialFocus on webview into config #5579
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Despite the main purpose of this configuration is to be used in Portals, I think it still should be included in the CLI declarations so it can be configured from typescript too
Thank you, good catch. This was the intention but I missed it. I added it now |
Moves the initial focus action of the webview on Android into a config flag which is
true
by default for Capacitor proper, andfalse
by default for programmatic setup (i.e: Portals) where we may not want the webview to have the initial focus.This line causes some problems on Portals apps by causing the webview to be selected when a page loads, and this may not be desired. With it being a config property, a developer could still enable it at any time if preferred. Portals apps will be configured to set this property to false by default.