fix js
This commit is contained in:
@@ -185,6 +185,9 @@ main{
|
||||
|
||||
transition: opacity .2s ease-out;
|
||||
}
|
||||
.cabinet-content{
|
||||
pointer-events:none;
|
||||
}
|
||||
.cabinet__orders.active, .cabinet__profile.active{
|
||||
opacity: 1;
|
||||
|
||||
@@ -193,6 +196,7 @@ main{
|
||||
.cabinet__orders.hide, .cabinet__profile.hide{
|
||||
position: static;
|
||||
display: block;
|
||||
pointer-events:auto;
|
||||
}
|
||||
.cabinet__subscription-pc{
|
||||
display: none;
|
||||
|
||||
@@ -67,7 +67,12 @@ export function closeModalForm(close){
|
||||
buttons.forEach(button => {
|
||||
button.onclick = function (buttonEvent) {
|
||||
modal.classList.remove('active');
|
||||
modal.querySelector('.active').classList.remove('active');
|
||||
|
||||
if (!modal.querySelector('.modal-map.active')) {
|
||||
modal.querySelector('.modal-form.active').classList.remove('active');
|
||||
}else{
|
||||
modal.querySelector('.modal-map.active').classList.remove('active');
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user