vaadin / web-components

A set of high-quality standards based web components for enterprise web applications. Part of Vaadin 20+
https://vaadin.com/docs/latest/components
470 stars 82 forks source link

fix: force scroller update after revealing a date #8217

Closed vursen closed 1 week ago

vursen commented 1 week ago

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 applied tabindex=0 to the date element, and this led to test failures because not all browsers allow focusing elements with tabindex=-1.

Part of #8187

Type of change

sonarcloud[bot] commented 1 week ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud