Skip to content

Date picker jumps when user manually types inside the input #940

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

Closed
danulqua opened this issue Jul 12, 2024 · 3 comments
Closed

Date picker jumps when user manually types inside the input #940

danulqua opened this issue Jul 12, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@danulqua
Copy link

danulqua commented Jul 12, 2024

Describe the bug
After updating from 8.2.0 to 8.8.1, the date picker in our project started changing its position in a strange way when the user manually types inside the input. It actually changes with any date change, i.e. it's also noticeable for a brief moment when you click inside the menu on any date before the menu disappears.

We configured the recalculate-position prop, but removing it does nothing since the provided function isn't being invoked when this occurs, so the issue lies elsewhere.

I can't share the project because it's under the NDA.

To Reproduce
Steps to reproduce the behavior:

  1. Open date picker
  2. Type something inside the input

Expected behavior
The date picker menu stays where it has appeared.

Screen recording
https://github.com/user-attachments/assets/a31bd99b-7006-4ff1-b317-f61da8e479dd

Desktop & mobile (please complete the following information):

  • Browser: Arc Version 1.51.0 (51691), Chromium Engine Version 126.0.6478.127
  • Library version: 8.8.1
@danulqua danulqua added awaiting triage The issue is not reviewed by the maintainers bug Something isn't working labels Jul 12, 2024
@Jasenkoo Jasenkoo removed the awaiting triage The issue is not reviewed by the maintainers label Jul 14, 2024
@Jasenkoo
Copy link
Contributor

It is possible that the change from this PR f955e2f breaks it, in any case, it will be reverted, I was not aware that it would break any existing behavior.

Jasenkoo added a commit that referenced this issue Jul 14, 2024
@danulqua
Copy link
Author

@Jasenkoo It didn't fix the issue. Seems like I was wrong about the update from 8.2.0 to 9.0.0 and this problem has just been here for a while.

What can cause date picker to jump on text input or on value change, because I have no idea?

@danulqua
Copy link
Author

CleanShot.2024-07-17.at.13.23.21.mp4

This is what happens: in the style attribute of the .dp--menu-wrapper element the inset value is being changed: first value is being overwritten and the last one is totally removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants