core-components icon indicating copy to clipboard operation
core-components copied to clipboard

core-toggle: closing with esc does not work in webkit

Open klizter opened this issue 2 years ago • 0 comments

Closing core-toggle in safari webkit with escape key press does not work.

Steps to reproduce:

  1. Locate test closes nested toggle with esc
  2. Remove if (browserName === 'webkit') test.skip()
  3. 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.

klizter avatar Aug 17 '23 10:08 klizter