flatpickr: Fix Tab key handler for 24-hour time.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2023-10-04 11:29:20 -07:00 committed by Tim Abbott
parent 2789dd4e85
commit 91f81d3962
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ export function show_flatpickr(
instance.selectedDateElem, instance.selectedDateElem,
instance.hourElement, instance.hourElement,
instance.minuteElement, instance.minuteElement,
instance.amPM, ...(user_settings.twenty_four_hour_time ? [] : [instance.amPM]),
$(".flatpickr-confirm")[0], $(".flatpickr-confirm")[0],
]; ];
const i = elems.indexOf(event.target); const i = elems.indexOf(event.target);