Typescript Code works in debug mode but not working normal mode

Discussão em 'Angular' iniciado por pushp, Fevereiro 21, 2025.

  1. pushp

    pushp Guest

    On debut mode code is working properly but on Proper run code run once and stop

    const leftArrow = document.querySelector('.arrow-left');
    const rightArrow = document.querySelector('.arrow-right');
    const tabsWrapper = document.querySelector('.tabs-wrapper');
    const tabs = document.querySelector('.tabs');

    for (var i = 0; i < tabs.childElementCount; i++) {
    if (tabs.children.className != "Active") {
    tabsWrapper.scrollBy({
    left: 200, // Scroll right by 200px
    behavior: 'smooth'
    });

    }
    else {
    break;
    }
    }


    I am having multiple tabs and auto slide according to condition

    Continue reading...

Compartilhe esta Página