mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-12 00:08:59 +01:00
418f17ee2b
- Add `bs` in data APIs everywhere - Update unit tests
8 lines
213 B
JavaScript
8 lines
213 B
JavaScript
(function () {
|
|
'use strict'
|
|
|
|
document.querySelector('[data-bs-toggle="offcanvas"]').addEventListener('click', function () {
|
|
document.querySelector('.offcanvas-collapse').classList.toggle('open')
|
|
})
|
|
})()
|