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

Caret moved at the end when used with Ant Design library #832

Open
lyvyu opened this issue Mar 30, 2024 · 2 comments
Open

Caret moved at the end when used with Ant Design library #832

lyvyu opened this issue Mar 30, 2024 · 2 comments

Comments

@lyvyu
Copy link

lyvyu commented Mar 30, 2024

Describe the issue and the actual behavior

When custom input is passed to PatternFormat, the caret will not hold it's position, but after first entered character, it will jump straight to the input's end.

Describe the expected behavior

Caret shall remain in the position of the last entered character.

Provide a CodeSandbox link illustrating the issue

https://stackblitz.com/edit/react-m9nrou-3d8qpz

Provide steps to reproduce this issue

Please see the sandbox provided.

Please check the browsers where the issue is seen

  • [ ✅] Chrome
  • [✅ ] Safari (OSX)
@pgeimer
Copy link

pgeimer commented Apr 15, 2024

Duplicate: #818

@C3maLi
Copy link

C3maLi commented Apr 20, 2024

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

3 participants