bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Offcanvas multiple same events

Open FrantzUml opened this issue 2 years ago • 3 comments

Prerequisites

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

FrantzUml avatar Jul 10 '23 22:07 FrantzUml

@RobinMalfait Can i take this issue up to work upon it?

ath1614 avatar Nov 12 '25 05:11 ath1614

@thecrypticace Can you guide me with your solution so that i can work in it if possible?

ath1614 avatar Nov 26 '25 16:11 ath1614