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

Cursor moves to the end when editing the date/time value. #837

Open
nanandn opened this issue Jun 21, 2022 · 0 comments
Open

Cursor moves to the end when editing the date/time value. #837

nanandn opened this issue Jun 21, 2022 · 0 comments

Comments

@nanandn
Copy link

nanandn commented Jun 21, 2022

I'm Submitting a ...

[ x] Bug report
[ ] Feature request
[ ] Support request

Steps to Reproduce

An example source code - https://codesandbox.io/s/react-datetime-bug-1r8ihy?file=/src/App.js

Expected Results

The cursor stays in place when editing.

Actual Results

The cursor moves to the end.

Minimal Reproduction of the Problem

The steps to reproduce is shown in the attached video. In the video notice how the cursor moves to the end of the text field once editing starts. This happens when the "value" and "timeFormat" props are provided.

Screen.Recording.2022-06-20.at.9.44.40.PM.mov
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

1 participant