Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ui5-dialog): fix text selection on chrome
WICG/webcomponents#773 On Chrome, clicking on slotted elements (light DOM) in the dialog (shadow DOM) causes the focus to travel up the light DOM tree to reach the closes element that is focusable. Which ends to be the body element as document.activeElement. This is not the case for FF & Safari, where the focus travels up the slot, reaching the dialog root which is actually the closest focusable element. This change introduces a workaround to align the focus behaviour in Chrome with the other browsers. Fixes #3466
- Loading branch information