Skip to content

[EuiAccordion] Children are still present in keyboard tab order when accordions are closed #6980

Closed
@cee-chen

Description

Bug originally found in #6904 (comment)

Repro steps:

  1. Go to https://codesandbox.io/s/withered-moon-hc3ft6?file=/demo.js
  2. Close the top-most parent accordion
  3. Hit tab - you would expect tab to go to the next focusable item outside the accordion, but it instead goes to the 2 nested accordions inside the parent accordion

This issue does not appear to occur once the child initialIsOpen accordions are collapsed, so something appears to be going wrong with that logic within EuiAccordion.

The above statement was incorrect, this issue also occurs for nested accordions that default to close.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions