Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accordion inception - Issue 1645 #2065

Merged
merged 1 commit into from
Oct 15, 2021
Merged

Accordion inception - Issue 1645 #2065

merged 1 commit into from
Oct 15, 2021

Conversation

snovosel
Copy link
Contributor

@snovosel snovosel commented Oct 7, 2021

This PR adds logic to the accordion item component to determine if the selected block client ID matches any of the inner blocks in a recursive manner.

Fixes #1645

Description

Previously, using an accordion block within the content of a parent accordion block would prohibit the user from entering content of the nested accordion block. The additional code will check if the selected block exists within the blocks hierarchy and will remain in an "open" state if this logic returns truthy.

Screenshots

Types of changes

Bug fix

How has this been tested?

Visually

Checklist:

  • My code is tested
  • My code follows accessibility standards
  • My code has proper inline documentation
  • I've included any necessary tests
  • I've included developer documentation
  • I've added proper labels to this pull request

…ed client id indicating the selected block is part of the current hierarchy
@cypress
Copy link

cypress bot commented Oct 7, 2021



Test summary

28 0 0 0


Run details

Project CoBlocks
Status Passed
Commit 05d2b3a
Started Oct 7, 2021 8:06 PM
Ended Oct 7, 2021 8:09 PM
Duration 03:07 💡
OS Linux Debian - 10.6
Browser Multiple

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@jonathanbardo jonathanbardo changed the title Issue 1645 Accordion inception - Issue 1645 Oct 12, 2021
@jonathanbardo jonathanbardo added the [Type] Bug Something that is not working as expected label Oct 15, 2021
@jonathanbardo jonathanbardo added this to the Next Release milestone Oct 15, 2021
@jonathanbardo
Copy link
Member

@snovosel This is working great! 👏

@jonathanbardo jonathanbardo merged commit df6ad00 into master Oct 15, 2021
@jonathanbardo jonathanbardo deleted the issue-1645 branch October 15, 2021 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Bug Something that is not working as expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ISBAT Add accordion inside an accordion and its content
2 participants