Offcanvas with static backdrop doesn't close on Esc if you click on the backdrop
Created by: crdo
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
- Open up a Offcanvas with static backdrop enabled.
- Click on the backdrop
- Press Esc key
- Offcanvas doesn't close and I expect it does
Reduced test cases
Issue can be reproduced on the documentation https://getbootstrap.com/docs/5.2/components/offcanvas/#static-backdrop
What operating system(s) are you seeing the problem on?
Windows, macOS, Android, iOS, Linux
What browser(s) are you seeing the problem on?
No response
What version of Bootstrap are you using?
5.2.1