File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 3
3
color : $white ;
4
4
line-height : 28px ;
5
5
padding : 2.5rem 3rem 1.5rem ;
6
- z-index : 100 ;
6
+ z-index : 30 ;
7
7
display : flex ;
8
8
flex-direction : column ;
9
9
align-items : center ;
Original file line number Diff line number Diff line change 21
21
</a>
22
22
</li> -->
23
23
< li class ="nav-item dropdown " data-bs-theme ="dark ">
24
- < a
24
+ < span
25
25
class ="nav-link dropdown-toggle "
26
- href ="# "
27
26
id ="navbarDropdown "
28
27
role ="button "
29
28
data-toggle ="dropdown "
30
29
aria-haspopup ="true "
31
30
aria-expanded ="false "
32
31
>
33
32
Products
34
- </ a >
33
+ </ span >
35
34
< div class ="dropdown-menu " aria-labelledby ="navbarDropdown ">
36
35
< a
37
36
class ="dropdown-item "
137
136
dropdown . classList . toggle ( "current" ) ;
138
137
document . querySelector ( ".dropdown-menu" ) . classList . toggle ( "show" ) ;
139
138
} ) ;
139
+ document . body . addEventListener ( 'click' , function ( e ) {
140
+ if ( e . target != dropdown && dropdown . classList . contains ( "current" ) ) {
141
+ dropdown . classList . toggle ( "current" ) ;
142
+ document . querySelector ( ".dropdown-menu" ) . classList . toggle ( "show" ) ;
143
+ }
144
+ } )
140
145
// console.log(window.location.pathname == "/cloud/");
141
146
// check if the current page ic cloud
142
147
let cur ;
You can’t perform that action at this time.
0 commit comments