jQuery(document).ready(function($) {
(() => {
const tabs = document.querySelectorAll('.short-repair-descpar');
const handler = () => {
tabs.map(tab => tab.scrollIntoView({ block: 'start', behavior: 'smooth' }));
};
for (let cbox of document.querySelectorAll('.callmeform')) {
cbox.addEventListener('click', handler);
}
})();
});
custom.js:214 Uncaught TypeError: tabs.map is not a function
at HTMLButtonElement.handler
jQuery(document).ready(function($) {
(() => {
const tabs = document.querySelectorAll('.short-repair-descpar');
const handler = () => {
tabs.scrollIntoView({ block: 'start', behavior: 'smooth' });
};
for (let cbox of document.querySelectorAll('.callmeform')) {
cbox.addEventListener('click', handler);
}
})();
});
Uncaught TypeError: tabs.scrollIntoView is not a function
at HTMLButtonElement.handler