Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

182
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda