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

fix(android): move initialFocus on webview into config #5579

Merged
merged 4 commits into from
May 4, 2022

Conversation

carlpoole
Copy link
Member

Moves the initial focus action of the webview on Android into a config flag which is true by default for Capacitor proper, and false 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.

Copy link
Member

@jcesarmobile jcesarmobile left a 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

@carlpoole
Copy link
Member Author

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

cli/src/declarations.ts Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants