Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

bug(text-field): When the mobile keyboard hides the text-field example, the text is written backwards, cursor positioning problem. #919

@julietafrade97

Description

@julietafrade97

📚 Docs or angular.io bug report

Description

When trying the input fields examples in mobile horizontal direction and the mobile keyboard hides de input that is being tested, the text appears written backwards. This happens because the cursor stays in the start of the string instead of the end.

🔬 Minimal Reproduction

What's the affected URL?**

https://material.angular.io/cdk/text-field/examples

Reproduction Steps**

1 - Open https://material.angular.io/cdk/text-field/examples on mobile
2 - The keyboard must be big enough to hide the input
3 - Write in any of the examples "1234"

Expected vs Actual Behavior**

Expected: The text written is "1234"
Actual: The text written is "4321"

📷Screenshot

The keyboard hiding the input:
image

The result after typing "1234":
image

The result after typing "12348" in case the keyboard is not hiding the input:
image

The result after typing "123" in case the keyboard is not hiding the input:
image

🌍 Your Environment

Browser info

Chrome for Android: 88.0.4324.93

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions