Tab content of active tab (inside a Accordion) disappears after opening the Accordion.
Created by: sebastianbrosch
Operating system: Windows 10 Browser: Google Chrome 92.0.4515.131
Since Bootstrap 5.1.0 the tab content of the first tab inside a Accordion isn't visible anymore.
Demo Bootstrap 5.0.2 (working): https://codepen.io/sebastianbrosch/pen/NWjONrJ Demo Bootstrap 5.1.0 (not working): https://codepen.io/sebastianbrosch/pen/LYyBXpa
After reopening the Accordion the content of the first Tab disappears. Opening the Accordion is removing .show
class from .tab-pane
(and also adds a .collapse
class to .tab-pane
). The content of the active tab disappears after reopening the Accordion.
It looks like this commit caused the issue: https://github.com/twbs/bootstrap/pull/34220/commits/bb668550b19610b5f438d6d98be7eec4efbb0a26. If I revert this commit and try the example above the tabs are working again.