Collapse elements do not respect data attribute configurations when manually instantiated
Created by: RyanBerliner
If you manually instantiate a Collapse, than data attribute configuration (either data-bs-parent
or data-bs-toggle
) are not respected. They are completely ignored.
At glance it looks like _getConfig()
does NOT spread Manipulator.getDataAttributes(element)
like it does in other components _getConfig()
(modal example) methods, or even the collapses own static collapseInterface()
.
Reduced test case https://jsfiddle.net/owxdrvtf/3/