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

[Bug]: Fast clicks on the left/right buttons in DateRangePicker causing text selection #3135

Closed
2 tasks done
apisarev opened this issue Dec 12, 2024 · 4 comments
Closed
2 tasks done
Assignees
Labels
bug Something isn't working

Comments

@apisarev
Copy link

Browser

Chrome

Package version

v3.0.842

React version

No response

Description

Fast clicks on the left/right buttons in DateRangePicker causing text selection.
prev-month-btn and next-month-btn have user-select: text in DateRangePicker , which seems wrong.
These buttons have user-select: none in Calendar and DatePicker.

Source code

No response

Reproduction

Open https://cloudscape.design/components/date-range-picker in Absolute mode and click fast the right arrow.

Code of Conduct

@apisarev apisarev added the bug Something isn't working label Dec 12, 2024
@jperals
Copy link
Member

jperals commented Dec 13, 2024

Hi Andrei, thank you for reporting this. This is an interesting discrepancy between components, which I am reaching out to my team to discuss. I will let you know when I have more information.

@jperals
Copy link
Member

jperals commented Dec 19, 2024

Our view is that there is no reason to prevent selection here, so ideally this text should be selectable should be in all 3 components, but in any case, double-clicking the arrow icons should not select any text —as you said. So this seems a valid issue and we are tracking it, although it might take a while to prioritize it as it doesn't seem to block any specific use case —please let us know otherwise.

@jperals jperals self-assigned this Jan 13, 2025
@jperals
Copy link
Member

jperals commented Jan 13, 2025

Addressing this here: #3181

@jperals
Copy link
Member

jperals commented Jan 17, 2025

This is now fixed in Release 3.0.870, so I will close this ticket. If you keep having issues please feel free to open a new one.

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