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

Document how to show/collapse/toggle an accordion item via Javascript #40760

Open
2 tasks done
dandv opened this issue Aug 22, 2024 · 0 comments · May be fixed by #40768
Open
2 tasks done

Document how to show/collapse/toggle an accordion item via Javascript #40760

dandv opened this issue Aug 22, 2024 · 0 comments · May be fixed by #40768

Comments

@dandv
Copy link
Contributor

dandv commented Aug 22, 2024

Prerequisites

Proposal

https://getbootstrap.com/docs/5.3/components/accordion/ should have a "Via JavaScript" section explaining clearly how to:

  1. Toggle the shown/collapsed state of an accordion item
  2. Ensure a given accordion item is shown (expanded)
  3. Expand one accordion item and collapse all others in the accordion.

Motivation and context

LLMs have learned (possibly from this SO answer) that to show an accordion item, you need to call .collapse('show'). That doesn't work.

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

Successfully merging a pull request may close this issue.

2 participants