Skip to content

DatePickerElement: clear() not working, when element uses "autoselect" #7558

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

Open
stefanuebe opened this issue May 20, 2025 · 1 comment
Open

Comments

@stefanuebe
Copy link
Contributor

The clear implementation of the date picker tries to select everything and then clear the input using different keys. The problem is, that it does not check, if the element might have already the input selected. In that case the key inputs will not select everything, but simply move the cursor to the beginning.

To ensure that everything is always selected it should send the "END" key first, before using "SHIFT+HOME"

@yuriy-fix
Copy link
Contributor

Might affect other component's clear API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants