mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
fix(datetime): keyboard navigation of time picker columns (#24251)
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user