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

183
Visualizações
Expand/collapse is not working when same item is opened simultanously at 2 different tabs

Issue - I kept a particular item expanded at one tab and try to expand the same item in another tab when I click on the expand button at this point, it is not able to search "close-section" and it is going to if condition.

toggleSection: function(component, event, helper) {
            let sectionAuraId = event.target.getAttribute("data-auraId");
            let sectionDiv = document.getElementById(sectionAuraId);
            let sectionState = sectionDiv.getAttribute("class").search("close-section"); 
            if(sectionState === -1) { //--section is opened..closing on click
                $A.util.removeClass(sectionDiv, "open-section");
                $A.util.addClass(sectionDiv, "close-section");            
            }else {//--section is closed..opening on click
                $A.util.removeClass(sectionDiv, "close-section");
                $A.util.addClass(sectionDiv, "open-section");
            }
            let currenttarget = event.currentTarget;
            $A.util.toggleClass(currenttarget,"rotate-icon");
            
        },
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