It turns out essential to flush all scroller debouncers before trying to focus any date to ensure the DOM is updated and the date is truly focusable. Previously, date.focus() could be called before the scrolled applied tabindex=0 to the date element, and this led to test failures because not all browsers allow focusing elements with tabindex=-1.
Description
It turns out essential to flush all scroller debouncers before trying to focus any date to ensure the DOM is updated and the date is truly focusable. Previously,
date.focus()
could be called before the scrolled appliedtabindex=0
to the date element, and this led to test failures because not all browsers allow focusing elements withtabindex=-1
.Part of #8187
Type of change