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 - unable to cancel an event #4658

Open
dkaczor97 opened this issue Jan 12, 2024 · 0 comments
Open

Accordion - unable to cancel an event #4658

dkaczor97 opened this issue Jan 12, 2024 · 0 comments

Comments

@dkaczor97
Copy link

Bug description:

Hi! I have upgraded from v13 to v16. I've noticed a big breaking change in Accordion's behaviour.
I've had a few panels where there were forms. I was checking if the form is dirty before a panel was collapsed. I was able to do it with panelChange event and preventDefault function in it's payload.
Now I can only subscribe to hide event which gives me only id of panel being collapsed. I have no option to cancel the event.

Link to minimally-working StackBlitz that reproduces the issue:

https://stackblitz.com/edit/angular-nfcfc3?file=src%2Fapp%2Faccordion-basic.ts

Versions of Angular, ng-bootstrap and Bootstrap:

Angular: 17
ng-bootstrap: 16

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

No branches or pull requests

1 participant