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

DatePicker has weird behavior with manual typing using date-fns #5221

Closed
1 task done
JeromeDeLeon opened this issue Jan 29, 2022 · 4 comments
Closed
1 task done

DatePicker has weird behavior with manual typing using date-fns #5221

JeromeDeLeon opened this issue Jan 29, 2022 · 4 comments
Assignees

Comments

@JeromeDeLeon
Copy link

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

Version

3.0.0-beta.9

Environment

Vue 3

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  1. Select any date using the date picker
  2. Manually update the date with input

What is expected?

The cursor should stay where you are typing

What is actually happening?

The cursor is moving around like going at the end of the input

@JeromeDeLeon
Copy link
Author

Thank you @tangjinzhou for fixing this. May I know when will the next release that includes this fixed?

@tangjinzhou
Copy link
Member

in about a week.
Actually you also can refer to data-fns.tsx to customize a component to solve this problem

@JeromeDeLeon
Copy link
Author

JeromeDeLeon commented Feb 18, 2022

@tangjinzhou Should I wait for a day for the build to reflect? I just tested it using the latest release and the bug still happening.
Here's the CSB. Try having a date of 2014-02-05 then try to delete 1 manually, you would notice it would try to format and go for 0204-02-05 then move the cursor at the end, unlike the dayjs one.

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants