Closed MarHerUMR closed 5 months ago
This sounds like an issue with AblePlayer itself, rather than with the WordPress plugin; can you confirm that this only occurs when using the plugin?
You are righ, it's a problem of Able Player itself. I'm taking it there. Sorry for the noise.
No worries! Thanks for raising issues!
Describe the bug
Able Player breaks Collapse elements from Bootstrap when used on the same page.
To Reproduce Steps to reproduce the behavior:
Expected behavior
When using Able Player and Bootstrap the Collapse elements should keep working.
Desktop (please complete the following information):
Additional context
Bootstrap uses
$(document).on()
to handle the interactions with collapsibles:Source
Able Player uses the same method in order to "init speech before it's needed" and disables the event listener again.
Source
By removing the event listener for Able Player the event listener for Boostrap is removed as well. Therefore the collapsibles no longer works.