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

@ -1350,6 +1350,9 @@ export class Datetime implements ComponentInterface {
style={{
'--offset-y': '-10px'
}}
// Allow native browser keyboard events to support up/down/home/end key
// navigation within the time picker.
keyboardEvents
ref={el => this.popoverRef = el}
>
{this.renderTimePicker(hoursItems, minutesItems, ampmItems, use24Hour)}