Skip to content

Commit

Permalink
form__fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Mirror45 committed Feb 1, 2024
1 parent af0b464 commit 5d251c7
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions js/forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,8 @@ const activateFilters = () => {
filterElement.classList.remove('ad-form--disabled');
};

// const forms = ['.ad-form', '.map__filters'].map((selector) => {
// const formElement = document.querySelector(`${selector}`);
// return {
// formElement,
// partElements: formElement.querySelectorAll('fieldset, select')
// };
// });

const forms = ['.ad-form', '.map__filters'].map((selector) => {
const formElement = document.querySelector(`${selector}`);
formElement.document.querySelector(`${selector}`);
//Возвращаем новый объект: каждой формы, все поля форм, и класс disabled формы
return {
formElement,
Expand Down

0 comments on commit 5d251c7

Please sign in to comment.