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

[fields] arrow key navigation jumps from day to year part #16201

Closed
craigsh opened this issue Jan 15, 2025 · 3 comments · Fixed by #16223
Closed

[fields] arrow key navigation jumps from day to year part #16201

craigsh opened this issue Jan 15, 2025 · 3 comments · Fixed by #16223
Assignees
Labels
bug 🐛 Something doesn't work component: pickers This is the name of the generic UI component, not the React module! feature: Keyboard editing Related to the pickers keyboard edition support: pro standard Support request from a Pro standard plan user. https://mui.com/legal/technical-support-sla/

Comments

@craigsh
Copy link

craigsh commented Jan 15, 2025

Steps to reproduce

Steps:

  1. Open this link to live example: https://stackblitz.com/edit/react-5c1shsfq
  2. Select the entire field (e.g. Ctrl-A)
  3. Use up/down arrow keys to change the first part (MM)
    3.Use right arrow key - the YYYY part is highlighted - it should move to the DD part

Current behavior

The focus moves from the first part (MM) to the third part (YYYY)

Expected behavior

Using the right arrow key should move focus to the next part of the date.

Context

No response

Your environment

Broken on the demo pages

Search keywords: Date field arrows

Order ID: 99361

@craigsh craigsh added bug 🐛 Something doesn't work status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jan 15, 2025
@github-actions github-actions bot added component: pickers This is the name of the generic UI component, not the React module! support: pro standard Support request from a Pro standard plan user. https://mui.com/legal/technical-support-sla/ labels Jan 15, 2025
@LukasTy
Copy link
Member

LukasTy commented Jan 16, 2025

Thank you for reporting this problem. 🙏
I think the best solution would be to remove the all-field selection if a value modification is done because it causes confusion and could also fix this problem as a "side-effect". 🤔

What do you think about this proposal? Do you agree? 🤔

@LukasTy LukasTy added feature: Keyboard editing Related to the pickers keyboard edition and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jan 16, 2025
@LukasTy LukasTy changed the title [Date Field] arrow key navigation jumps from day to year part [fields] arrow key navigation jumps from day to year part Jan 16, 2025
@craigsh
Copy link
Author

craigsh commented Jan 17, 2025

Thanks for the quick response.

I agree that sounds like a good solution. It does seem a bit odd to use the up and down arrow keys to modify the first part when the whole thing is selected. Best to just select the part being modified.

Copy link

This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.

Note

@craigsh How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: pickers This is the name of the generic UI component, not the React module! feature: Keyboard editing Related to the pickers keyboard edition support: pro standard Support request from a Pro standard plan user. https://mui.com/legal/technical-support-sla/
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants