2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-20 20:00:36 +03:00

Fix offcanvas example, using a custom trigger selector (#33926)

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
GeoSot
2021-05-11 10:58:45 +03:00
committed by GitHub
parent 9fe36edf68
commit 19f95a3d8d
2 changed files with 2 additions and 2 deletions
@@ -1,7 +1,7 @@
(function () {
'use strict'
document.querySelector('[data-bs-toggle="offcanvas"]').addEventListener('click', function () {
document.querySelector('#navbarSideCollapse').addEventListener('click', function () {
document.querySelector('.offcanvas-collapse').classList.toggle('open')
})
})()