Collapse animation is not smooth when toggled via a button within the "collapse" element
Created by: alexpls
Bootstrap Version: 5.0.0-alpha1 Operating system: Windows 10 Browser: Firefox 80, Chrome 84
Hello,
I've noticed a case where the close animation for collapsible elements does not display smoothly:
Repro
- Visit this JSBin https://jsbin.com/xihawedasa/edit?html,output
- Click the "Outer toggle" button to open the collapsible element
- Click the "Inner toggle" button to close it
Expected
- The animation for closing the element displays smoothly
Actual
- It doesn't
Notes
- This appears to be a regression since Bootstrap 4 (discussion).
If you consider this a bug, I'm happy to investigate what its cause is and open a PR to fix it.
Thanks for your awesome work on Bootstrap