-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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(Datepicker): Page scrolls when using down arrow in datepicker month-view popup #24969
Comments
I couldn't get it to happen on my machine. Did you press any specific sequence of keys after you open the datepicker? |
No, just the down arrow right after opening the popup. |
I updated the browsers in the original post. It also reproduces on Edge if you keep pressing the down arrow. |
Same issue with autocomplete: Worked in ver 12: |
Here's what I'm doing on Chrome Screen.Recording.2022-05-25.at.12.44.56.mov |
Maybe the OS make a difference...? I am on Windows. |
Hi, I managed to repeat this behaviour. It happens when you hold down the button for a long time. This can easily be reproduced by slowing down the processor, via the perfomance tab. This behaviour is described in part here. |
Well, this is a tricky one. After the keydown event happens, there is a slight delay before we focus the cell. We wait until after view checked, then focus the active cell in a
|
In an earlier change we introduced a timeout between when the datepicker is opened and when focus is moved into the current view. This means that the browser has some time to fire another keyboard event before we start preventing their default actions from inside the calendar, potentially allowing the page to be scrolled. These changes fix the issue by always preventing the default action of navigation keys at the overlay level. Fixes angular#24969.
In an earlier change we introduced a timeout between when the datepicker is opened and when focus is moved into the current view. This means that the browser has some time to fire another keyboard event before we start preventing their default actions from inside the calendar, potentially allowing the page to be scrolled. These changes fix the issue by always preventing the default action of navigation keys at the overlay level. Fixes angular#24969.
…4991) In an earlier change we introduced a timeout between when the datepicker is opened and when focus is moved into the current view. This means that the browser has some time to fire another keyboard event before we start preventing their default actions from inside the calendar, potentially allowing the page to be scrolled. These changes fix the issue by always preventing the default action of navigation keys at the overlay level. Fixes #24969. (cherry picked from commit 4ca4fbd)
…4991) In an earlier change we introduced a timeout between when the datepicker is opened and when focus is moved into the current view. This means that the browser has some time to fire another keyboard event before we start preventing their default actions from inside the calendar, potentially allowing the page to be scrolled. These changes fix the issue by always preventing the default action of navigation keys at the overlay level. Fixes #24969.
…4991) In an earlier change we introduced a timeout between when the datepicker is opened and when focus is moved into the current view. This means that the browser has some time to fire another keyboard event before we start preventing their default actions from inside the calendar, potentially allowing the page to be scrolled. These changes fix the issue by always preventing the default action of navigation keys at the overlay level. Fixes #24969. (cherry picked from commit 4ca4fbd)
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Is this a regression?
The previous version in which this bug was not present was
12.2.13
Description
After the update to Angular 13, the datepicker month view has keyboard interaction issues.
Reproduction
Steps to reproduce:
Expected Behavior
The calendar popup does not move in the page.
Actual Behavior
After a few arrow key presses, the page scrolls and the datepicker popup moves as well.
Environment
The text was updated successfully, but these errors were encountered: