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

[pickers] Unable to change value with keyboard when the input label is clicked #14685

Open
brandong954 opened this issue Sep 20, 2024 · 2 comments
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

Comments

@brandong954
Copy link

brandong954 commented Sep 20, 2024

Steps to reproduce

Steps:

  1. Add a DatePicker component to the application
  2. Click on the label of the date picker input, specifically where it eventually floats to once the input is selected.

Current behavior

The input becomes active, but unable to use the keyboard to modify date input.

Expected behavior

Clicking on the label of the DatePicker input allows input to be modified with keyboard similar to if the input itself is clicked.

Context

Modify date input with keyboard, even if clicking on the label of the input.

Your environment

npx @mui/envinfo
  Browsers:
    Microsoft Edge
      Version 129.0.2792.52 (Official build) (arm64)
    Google Chrome
      Version 128.0.6613.139 (Official Build) (arm64)
  System:
    OS: Linux 5.15 Debian GNU/Linux 12 (bookworm) 12 (bookworm)
  Binaries:
    Node: 22.9.0 - /usr/local/bin/node
    npm: 10.8.3 - /usr/local/bin/npm
    pnpm: Not Found
  Browsers:
    Chrome: Not Found
  npmPackages:
    @emotion/react: ^11.13.0 => 11.13.3
    @emotion/styled: ^11.13.0 => 11.13.0
    @mui/core-downloads-tracker:  6.1.0
    @mui/icons-material: ^6.1.0 => 6.1.0
    @mui/material: ^6.1.0 => 6.1.0
    @mui/private-theming:  6.1.0
    @mui/styled-engine:  6.1.0
    @mui/system:  6.1.0
    @mui/types:  7.2.16
    @mui/utils:  6.1.0
    @mui/x-date-pickers: ^7.17.0 => 7.17.0
    @mui/x-internals:  7.17.0
    @types/react:  18.3.7
    react: ^18.3.1 => 18.3.1
    react-dom: ^18.3.1 => 18.3.1

Search keywords: DatePicker input keyboard

@brandong954 brandong954 added bug 🐛 Something doesn't work status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Sep 20, 2024
@github-actions github-actions bot added the component: pickers This is the name of the generic UI component, not the React module! label Sep 20, 2024
@michelengelen michelengelen changed the title Unable to modify DatePicker input with keyboard when its input label is clicked [pickers] Unable to change value with keyboard when the input label is clicked Sep 20, 2024
@michelengelen
Copy link
Member

Hey @brandong954
thanks for opening this issue.

I can confirm that clicking the label focuses the input, but in some place where editing is not possible. This only reproduces on inputs that already have a value.

I'll add this to the board ... 👍🏼

@michelengelen michelengelen removed the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Sep 20, 2024
@LukasTy
Copy link
Member

LukasTy commented Nov 26, 2024

Noting that arrow editing works, but letter editing is broken.
It's working with the default v8 behavior - accessible DOM structure.

@LukasTy LukasTy added the feature: Keyboard editing Related to the pickers keyboard edition label Nov 26, 2024
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
Projects
None yet
Development

No branches or pull requests

3 participants