material-components / material-components-web-catalog

Catalog of Material Components for the web (MDC Web)
https://material-components.github.io/material-components-web-catalog/
Apache License 2.0
116 stars 38 forks source link

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

Open ghost opened 6 years ago

ghost commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

@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 commented 6 years ago

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