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

InputItem type为phone的时候 比如123 4567 8919 在3后去删除,发现删不掉,光标会自动到末尾 #2840

Closed
1 task
zgdmm opened this issue Sep 13, 2018 · 1 comment
Assignees

Comments

@zgdmm
Copy link

zgdmm commented Sep 13, 2018

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

2.2.4

Environment

ios12

Reproduction link

https://antd-mobile.gitee.io/components/input-item-cn/#components-input-item-demo-basic

Steps to reproduce

InputItem type为phone的时候 比如123 4567 8919 在3后去删除,发现删不掉,光标会自动到末尾

What is expected?

InputItem type为phone的时候 比如123 4567 8919 在3后去删除,希望能删掉,光标不会自动到末尾

What is actually happening?

InputItem type为phone的时候 比如123 4567 8919 在3后去删除,发现删不掉,光标会自动到末尾

@ant-design-bot
Copy link

Translation of this issue:


InputItem type is when the phone is like 123 4567 8919 After 3, delete it, and find that it can't be deleted, the cursor will automatically end to the end.

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

2.2.4

Environment

Ios12

Reproduction link

[https://antd-mobile.gitee.io/components/input-item-cn/#components-input-item-demo-basic](https://antd-mobile.gitee.io/components/input-item -cn/#components-input-item-demo-basic)

Steps to reproduce

When InputItem type is phone, for example, 123 4567 8919 deletes after 3, and finds that it cannot be deleted, the cursor will automatically end to the end.

What is expected?

When InputItem type is phone, for example, 123 4567 8919 is deleted after 3, I hope to delete it, the cursor will not automatically end to the end.

What is actually happening?

When InputItem type is phone, for example, 123 4567 8919 deletes after 3, and finds that it cannot be deleted, the cursor will automatically end to the end.

@zack24q zack24q self-assigned this Sep 14, 2018
ziluo pushed a commit that referenced this issue Dec 28, 2018
* Fix(InputItem): Adjust the caret position of the formatted value (#2840 #1553 #1208 #1162 #1165 #810)

* refactor: remove onChange in the event loop, refactor adjustCaretPosition

* Fix(InputItem): caret position problem when using android phone keyboard
@ziluo ziluo closed this as completed Dec 29, 2018
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

No branches or pull requests

4 participants