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

mobile: Non determinism in scrolling the view when the user clicks into a textfield and the keyboard comes up #62

Open
ghost opened this issue May 1, 2018 · 3 comments
Labels

Comments

@ghost
Copy link

ghost commented May 1, 2018

I know this is a sticky one.

But on mobile in the Text field demo.
Sometimes when you click into a text box it scrolls the view so that you can still see the text field when the keyboard comes up a the bottom.

Other times it does not, and the keyboard hides the text field you just clicked in.

I knwo the answer is DOT USE web views on mobiles, but its weird how non deterministic it is.

@bonniezhou
Copy link
Contributor

Hi @gedw99, which mobile browser and which OS are you seeing this in? Is there a specific type of text field (standard, box, outlined, textarea, etc) that this happens with?

We're definitely interested in supporting mobile web :) this may be an issue with the actual component in MDC Web and not just the catalog.

@ghost
Copy link
Author

ghost commented May 15, 2018

@bonniezhou

Here is how you can repo:
https://material-components.github.io/material-components-web-catalog/#/component/text-field

Use android stock with chrome stock.

Initially it all works with the view sliding up when the keyboard opens.
But some some reason some with some of the fields it fails on the 2nd time of putting focus in the field.

Its got some weird non non determinism and so its hard to repo, but if you patiently go from top to the bottom you will see what i mean..

@bonniezhou
Copy link
Contributor

Yup seems like a bug, thanks for filing! Added to our tracker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant