You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
but the tab is not disabled (the other tab where you click on)
it is enabled, you are allowed to go to that, but maybe we really want to cancel it
are you saying that we need to disable all the tabs upfront? so you can't go to it at the first place?
so if you are in a tab and what ever you do in the tab means you need to then disabled the other tabs?
Problem is that you don't really know this all the time, and its very cumbersome to constantly check this.
We even have server side validation, so what we did before was really "onBeforeChange"
we always didn't let it go through, then the server side call came back and that decided then afterward if we can go through or not..
how would you do that with just disabled? We don't want to disable any tabs, we just want to be in full control of going to another tab..
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 andpreventDefault
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
The text was updated successfully, but these errors were encountered: