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] Bug when typing the value on input #13769

Closed
KarineBrandelli opened this issue Jul 8, 2024 · 8 comments
Closed

[pickers] Bug when typing the value on input #13769

KarineBrandelli opened this issue Jul 8, 2024 · 8 comments
Labels
component: pickers This is the name of the generic UI component, not the React module! status: waiting for author Issue with insufficient information

Comments

@KarineBrandelli
Copy link

KarineBrandelli commented Jul 8, 2024

Steps to reproduce

Link to live example: (required)
https://codesandbox.io/s/qzkwfj?file=/src/Demo.tsx

Steps:

  1. Type the input value really fast (like you're accidentally hit the keyboard)

Current behavior

I'm using the DatePicker component, and sometimes when I type a input value,
this bug happens, like the focus is beeing changed:

bug.webm

I've tried the same 'fast typing' on the docs, and the same thing happens:

docs.webm

I know it's a really unsual bug, but maybe there's something to do about it?

Expected behavior

Not to change the focus between slots.

Context

No response

Your environment

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Search keywords: typing

@KarineBrandelli KarineBrandelli added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Jul 8, 2024
@zannager zannager added the component: pickers This is the name of the generic UI component, not the React module! label Jul 9, 2024
@michelengelen
Copy link
Member

Hey @KarineBrandelli and sry for the late reply.
I cannot reproduce the issue you are facing.
Could you please make very precise steps to what you are doing?

@michelengelen michelengelen added status: waiting for author Issue with insufficient information and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jul 15, 2024
@LukasTy
Copy link
Member

LukasTy commented Jul 15, 2024

@michelengelen @KarineBrandelli This could have been an issue caused by a bug solved with #13779.
Could you double-check if you are experiencing the same problem with the latest package version?

@KarineBrandelli
Copy link
Author

Hey @KarineBrandelli and sry for the late reply. I cannot reproduce the issue you are facing. Could you please make very precise steps to what you are doing?

That's the thing, it only happens sometimes, and more likely when you kinda 'hit' the keyboard with a lot of keys at the same time.

@github-actions github-actions bot added status: waiting for maintainer These issues haven't been looked at yet by a maintainer and removed status: waiting for author Issue with insufficient information labels Jul 22, 2024
@KarineBrandelli
Copy link
Author

@michelengelen @KarineBrandelli This could have been an issue caused by a bug solved with #13779. Could you double-check if you are experiencing the same problem with the latest package version?

Sure! These are the versions that I'm using:

        "@mui/material": "5.16.0",
        "@mui/x-date-pickers": "7.10.0",

@LukasTy
Copy link
Member

LukasTy commented Jul 22, 2024

@KarineBrandelli I've tried fast typing on docs and it does seem to react fine to it. 🤔
Could you provide a more step by step guide on what you are typing to trigger it or maybe provide a video with the keys that are being pressed as in the video below?

Screen.Recording.2024-07-22.at.15.20.19.mov

@LukasTy LukasTy added status: waiting for author Issue with insufficient information and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jul 22, 2024
@KarineBrandelli
Copy link
Author

@KarineBrandelli I've tried fast typing on docs and it does seem to react fine to it. 🤔 Could you provide a more step by step guide on what you are typing to trigger it or maybe provide a video with the keys that are being pressed as in the video below?

Screen.Recording.2024-07-22.at.15.20.19.mov

It's exactly how your typing, but not only on the year slot! Select the first slot, and then like 'hit' the keyboard until all the slots are filled (dummy I know 😩)

@github-actions github-actions bot added status: waiting for maintainer These issues haven't been looked at yet by a maintainer and removed status: waiting for author Issue with insufficient information labels Jul 25, 2024
@michelengelen
Copy link
Member

@LukasTy I did just try it again and also used throttling to simulate heavy load, but still could not reproduce that issue. 🤷🏼
@KarineBrandelli could you give us some information on your setup, etc? What OS are you on, which browser were you using? Does it happen for colleagues as well?

@michelengelen michelengelen added status: waiting for author Issue with insufficient information and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jul 26, 2024
Copy link

github-actions bot commented Aug 2, 2024

The issue has been inactive for 7 days and has been automatically closed.

@github-actions github-actions bot closed this as completed Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: pickers This is the name of the generic UI component, not the React module! status: waiting for author Issue with insufficient information
Projects
None yet
Development

No branches or pull requests

4 participants