ng-bootstrap / ng-bootstrap

Angular powered Bootstrap

Home Page:https://ng-bootstrap.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

accordion prevent close (or open) of a item.

jcompagner opened this issue · comments

in the previous accordion implementation we could do:
(panelChange)="onTabChange($event)"

and because we also had: [activeIds]="getSelectedTabId()"

that means in the onTabChange we did event.preventDefault()

and then later on when we checked if the content really could be hidden (or new one shown) we updated the "selected tab" and it would show it.

But with the new implementation that state seems to be somewhere else. And i can't find a way to block or i guess i need to do everything myself (so don't use the ngbAccordionButton directive) is this true or is there another way?