fix: Fix issue #1037
This commit is contained in:
parent
aa91957832
commit
d361149bf6
1 changed files with 2 additions and 1 deletions
|
@ -54,8 +54,9 @@ document.addEventListener('DOMContentLoaded', function () {
|
|||
const navMain = document.getElementsByClassName('navbar-collapse')
|
||||
Array.from(navMain).forEach(function (el) {
|
||||
el.addEventListener('click', function (e) {
|
||||
if (e.target.tagName === 'A') {
|
||||
if (e.target.tagName === 'A' && !e.target.classList.contains("dropdown-toggle")) {
|
||||
el.classList.add('collapse')
|
||||
el.classList.remove('show')
|
||||
}
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue