bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Offcanvas and Modal open and close immediately on some touch devices

Open andreas-web opened this issue 9 months ago • 2 comments

Prerequisites

Describe the issue

If an offcanvas (or modal) is not triggered via a button with data-bs-toggle, but is opened "manually" via a pointerup or pointerdown event, it closes again immediately on some touch devices because the backdrop receives an additional event.

Reduced test cases

You can see this clearly in this fiddle: https://jsfiddle.net/andreas_walter/cpoL102a/ (To test with e.g. microsoft surface touchscreen or android tablet)

What operating system(s) are you seeing the problem on?

Windows, Android

What browser(s) are you seeing the problem on?

Chrome, Firefox, Microsoft Edge, Opera

What version of Bootstrap are you using?

v5.3.3

andreas-web avatar May 15 '24 10:05 andreas-web