Offcanvas doesn't close on escape when `data-bs-backdrop` is set to false
Prerequisites
-
I have searched for duplicate or closed issues -
I have validated any HTML to avoid common problems -
I have read the contributing guidelines
Describe the issue
When attribute data-bs-backdrop
is set to false for .offcanvas
, the "close on escape" feature doesn't work anymore. When it's (explicilty or not) set to true, it works.
Reduced test cases
https://getbootstrap.com/docs/5.2/components/offcanvas/#body-scrolling
What operating system(s) are you seeing the problem on?
Windows
What browser(s) are you seeing the problem on?
Chrome, Firefox
What version of Bootstrap are you using?
5.x