fix(datetime): keyboard navigation of time picker columns (#24251)

This commit is contained in:
Sean Perkins
2021-12-01 11:57:51 -05:00
committed by GitHub
parent c2bef8df14
commit 8bdcd3c6c9
4 changed files with 23 additions and 1 deletions

View File

@ -372,6 +372,7 @@ export const configureKeyboardInteraction = (
* ArrowDown should move focus to the next focusable ion-item.
*/
case 'ArrowDown':
// Disable movement/scroll with keyboard
ev.preventDefault();
const nextItem = getNextItem(items, activeElement);
// tslint:disable-next-line:strict-type-predicates
@ -383,6 +384,7 @@ export const configureKeyboardInteraction = (
* ArrowUp should move focus to the previous focusable ion-item.
*/
case 'ArrowUp':
// Disable movement/scroll with keyboard
ev.preventDefault();
const prevItem = getPrevItem(items, activeElement);
// tslint:disable-next-line:strict-type-predicates