fix js
This commit is contained in:
1 parent
3add6ebc02
commit
fa143ef289
3 files changed
+11
-1
No files matched your search
@@ -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