mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-21 20:55:50 +02:00
Add .show class to offcanvas example, and disable it's normal behavior in our JS
This commit is contained in:
@@ -131,4 +131,12 @@
|
||||
modalBodyInput.value = recipient
|
||||
})
|
||||
}
|
||||
|
||||
// Offcanvas demo
|
||||
const myOffcanvas = document.querySelector('.bd-example-offcanvas #offcanvas')
|
||||
if (myOffcanvas) {
|
||||
myOffcanvas.addEventListener('show.bs.offcanvas', event => {
|
||||
event.preventDefault()
|
||||
}, false)
|
||||
}
|
||||
})()
|
||||
|
Reference in New Issue
Block a user