Open javier-godoy opened 1 year ago
Also, see the related Slack thread
Summary from Slack discussion:
This seems to be native behaviour in Chrome only:
- focus an element inside the shadow root
- Add tabindex -1 to the host element
- Remove the tabindex
- The previously focused element gets blurred!
This doesn’t happen in Safari and Firefox
Description
The activeElement in
vaadin-grid
is nulled when enabling the grid.(As a workaround delay focusing until the grid is reenabled).
Expected outcome
I would weakly expect either the active element to be preserved.
Minimal reproducible example
https://vaadin.com/docs/latest/example?path=component/grid/grid-basic.ts
Steps to reproduce
g
be thevaadin-grid
in the viewEnvironment
Vaadin version(s): 24.1
Browsers
Chrome