Skip to content

Conversation

@eduardoRoth
Copy link
Contributor

Issue number: resolves #30291


What is the current behavior?

Any component that is clicked inside the slot="header" of an Accordion component will trigger the ionChange event if it's inside an Accordion Group.

You can stop this by using event.stopPropagation() on the component inside the Accordion header, but sometimes you require the event to bubble up, for example when using a Radio Group. In those cases, if you stop the event from bubbling, the Radio Group won't update it's value.

What is the new behavior?

By adding a skip-accordion-toggle attribute to any element inside the slot="header" it will allow the event to bubble up while skipping the accordion from being toggled.

Does this introduce a breaking change?

  • Yes
  • No

Other information

N/A

@eduardoRoth eduardoRoth requested a review from a team as a code owner March 21, 2025 17:42
@eduardoRoth eduardoRoth requested a review from ShaneK March 21, 2025 17:42
@vercel
Copy link

vercel bot commented Mar 21, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ionic-framework ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 21, 2025 5:44pm

@thetaPC
Copy link
Contributor

thetaPC commented Jan 21, 2026

Thank you for submitting the PR!

After discussing, we decided to not implement it due to the internal guard clauses that the components have and native UX standards. Two workarounds and an in depth explanation were provided at the issue. I recommend reviewing them.

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

Labels

package: core @ionic/core package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: add skip-accordion-toggle attribute

2 participants