core-components
core-components copied to clipboard
core-toggle: closing with esc does not work in webkit
Closing core-toggle in safari webkit with escape key press does not work.
Steps to reproduce:
- Locate test
closes nested toggle with esc - Remove
if (browserName === 'webkit') test.skip() - Run the test with webkit as browser
Expected result Should first escape key-press close the nested core-toggle and on subsequent escape key-press close the root core-toggle
Actual result Does not close core-suggest
Note:
Debugging the issue points to a focus management issue; document.activeElement points to core-toggle button in chromium and firefox, while webkit points to html body, that being after having expanded all the core-toggles.