Editorial question66.3K views4,422 votes0 answers2,621 following
AI-generatedBootstrap 5 Offcanvas static backdrop still closes on outside click
Offcanvas backdrop behavior with static setting The Offcanvas component in Bootstrap 5.3.x documents that data-bs-backdrop="static" should prevent the panel from closing when a user clicks the backdrop area. The expected behavior mirrors the modal component: focus remains trapped until an explicit close action or the Escape key. In practice the offcanvas sti