Offcanvas multiple same events
Prerequisites
- [X] I have searched for duplicate or closed issues
- [X] I have validated any HTML to avoid common problems
- [X] I have read the contributing guidelines
Describe the issue
Using JS to create bootstrap.Offcanvas, a 'keydown' event listener is added each time the Offcanvas is opened (and closed by button data-bs-toggle). As the Offcanvas object seems to use an anonymous function with addEventListener, it is not possible to remove the listener.
The only solution found is to add a listener to 'hidden.bs.offcanvas' and to call dispose() on the object.
Reduced test cases
The only solution found is to add a listener to 'hidden.bs.offcanvas' and to call dispose() on the object.
What operating system(s) are you seeing the problem on?
Windows, Linux
What browser(s) are you seeing the problem on?
Chrome, Firefox
What version of Bootstrap are you using?
5.2
@RobinMalfait Can i take this issue up to work upon it?
@thecrypticace Can you guide me with your solution so that i can work in it if possible?