Merge pull request #5668 from deepaksinghgusain227/sidebar-tab-one-at-a-time-issue

Fixed the issue of sidebar only one tab at one time issue
This commit is contained in:
Glenn Hermans 2022-01-20 19:12:14 +01:00 committed by GitHub
commit 39a854adcd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 6 deletions

View File

@ -80,13 +80,15 @@
mounted(){
$('.menubar-ancor').click(function(){
var tabname = this.children[1].innerHTML;
$('.menu-item').click(function(){
if(! this.classList.contains('active')){
$('.menu-item').removeClass('active');
if (tabname != 'Dashboard') {
this.parentElement.classList.toggle('active');
this.children[2].classList.toggle("rotate-arrow-icon");
}
if (this.children[0].children[1].innerHTML != 'Dashboard') {
this.classList.toggle('active');
this.children[0].children[2].classList.toggle("rotate-arrow-icon");
}
}
});
},
});