NgbAccordion - destroyOnHide - doesn't seem to work correctly
See original GitHub issueHello 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:
- Created 6 years ago
- Comments:6 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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=previewI’ve tried the solution in #1940 and it works for me