question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NgbAccordion - destroyOnHide - doesn't seem to work correctly

See original GitHub issue

Hello everyone, if I set the ‘destroyOnHide’ option to the boolean ‘false’, the accordion don’t close the panels anymore. If you use one of your link in Plunker (eg: this) and put [destroyOnHide]="false" on the first line of the ‘src/accordion-toggle.html’ file you can see the effect.

Here the versions of the libraries that I’m using:

  • Angular: 4.4.5
  • ng-bootstrap: v1.0.0-beta.5
  • Bootstrap: v4.0.0-beta

Thank you!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
maxokorokovcommented, Nov 9, 2017

Looks like it doesn’t work to me too. Here is the link the plunkr that simply adds [destroyOnHide]="false" http://plnkr.co/edit/IFv7b0VIn2zcqoJKclZX?p=preview

0reactions
sourcedumpcommented, Nov 10, 2017

I’ve tried the solution in #1940 and it works for me

Read more comments on GitHub >

github_iconTop Results From Across the Web

NgbAccordion - destroyOnHide - doesn't seem to work correctly
Hello everyone, if I set the 'destroyOnHide' option to the boolean 'false', the accordion don't close the panels anymore. If you use one...
Read more >
Angular 6 with Ng-Bootstrap setting [destroyOnHide]="false ...
If I remove the [destroyOnHide] attribute the tabs function correctly. Bootstrap version "@ng-bootstrap/ng-bootstrap": "^2.2.1" Angular version ...
Read more >
Accordion - Angular powered Bootstrap
Accordion is a collection of collapsible panels (bootstrap cards). It can ensure only one panel is opened at a time and allows to...
Read more >
@ng-bootstrap/ng-bootstrap | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >
UNPKG - @ng-bootstrap/ng-bootstrap
ngb-config';\r\n\r\n/**\r\n * A configuration service for the [NgbAccordion](#/components/accordion/api#NgbAccordion) component.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found