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:
commit
39a854adcd
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue