Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

217
Visualizações
Javascript Uncaught RangeError: Maximum call stack size exceeded

as you can see in the title I have a problem multiple people have had on this platform, but nothing works for me. I get the following error in my console:

Uncaught RangeError: Maximum call stack size exceeded
    at new UseArray (quiz.html?_ijt=b3fubmjhnt75jg0ptc21kkq5g3&_ij_reload=RELOAD_ON_SAVE:346:20)
    at new Elements (quiz.html?_ijt=b3fubmjhnt75jg0ptc21kkq5g3&_ij_reload=RELOAD_ON_SAVE:121:26)
    at new Structure (quiz.html?_ijt=b3fubmjhnt75jg0ptc21kkq5g3&_ij_reload=RELOAD_ON_SAVE:63:29)
    at new CreateLink (quiz.html?_ijt=b3fubmjhnt75jg0ptc21kkq5g3&_ij_reload=RELOAD_ON_SAVE:310:30)
    at new Navigation (quiz.html?_ijt=b3fubmjhnt75jg0ptc21kkq5g3&_ij_reload=RELOAD_ON_SAVE:294:25)
    at new Elements (quiz.html?_ijt=b3fubmjhnt75jg0ptc21kkq5g3&_ij_reload=RELOAD_ON_SAVE:123:24)
    at new Structure (quiz.html?_ijt=b3fubmjhnt75jg0ptc21kkq5g3&_ij_reload=RELOAD_ON_SAVE:63:29)
    at new CreateLink (quiz.html?_ijt=b3fubmjhnt75jg0ptc21kkq5g3&_ij_reload=RELOAD_ON_SAVE:310:30)
    at new Navigation (quiz.html?_ijt=b3fubmjhnt75jg0ptc21kkq5g3&_ij_reload=RELOAD_ON_SAVE:294:25)
    at new Elements (quiz.html?_ijt=b3fubmjhnt75jg0ptc21kkq5g3&_ij_reload=RELOAD_ON_SAVE:123:24)

I have no idea how to fix it because I tried everything I could find the last couple of hours. The main problem seems to be this function:

    class DropdownFunctions {

        DropDownClose(e) {
            const tgt = e.target;
            if (tgt.matches('.dropBtn')) {
                this.DropDownCloseFunction();
            }
        }

        DropDownCloseFunction() {
            let dropdowns = document.getElementsByClassName("dropDiv");
            for (let i = 0; i < dropdowns.length; i++) {
                let openDropdown = dropdowns[i];
                if (openDropdown.classList.contains('show')) {
                    openDropdown.classList.remove('show');
                } else {
                    openDropdown.classList.add('show');
                }
            }
        }
    }

And I have a lot of functions like this:

    class CreateLink {
        constructor() {
            this.tmp = []
            this.array = new UseArray();
            this.structure = new Structure(this.array.Quiz);
        }

        getLink() {
            let url = this.structure.url;
            for (let i = 0; i < url.length; i++) {
                // Check if question is from the same quiz part and adds a , between chosen answers and add the right prefix at the beginning
                if (url[i].length > 0) {
                    this.tmp.push("" + this.array.Quiz[i].prefix + url[i].join(","))
                }
            }
            // If answers are from different quiz parts add a & between answers
            return "" + this.tmp.join("&");
        }

    }

Anybody know a way to fix it? JSFiddle: https://jsfiddle.net/thijsl0705/1s98gumk/4/

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda