fix 18.11
This commit is contained in:
@@ -76,7 +76,7 @@ function checkPhone(input) {
|
||||
inputTabs('.form-input__tabs', '.form-input-tabs__button');
|
||||
inputTabs('.modal-map__control', '.modal-map-control__item');
|
||||
|
||||
function inputTabs(main, button) {
|
||||
function inputTabs(main, button, mandatory) {
|
||||
let mains = document.querySelectorAll(main);
|
||||
|
||||
mains.forEach(main => {
|
||||
@@ -186,6 +186,16 @@ function remoteControl(main, button) {
|
||||
|
||||
subject.querySelector('.remote-control__item.active').classList.remove('active');
|
||||
subject.children[indexActive].classList.add('active');
|
||||
|
||||
let mandatorys = subject.querySelectorAll('.mandatory');
|
||||
|
||||
mandatorys.forEach(mandatory => {
|
||||
if (mandatory.required) {
|
||||
mandatory.required = false;
|
||||
}else{
|
||||
mandatory.required = true;
|
||||
}
|
||||
})
|
||||
}, 0);
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user