Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

181
Views
Expandir/contraer no funciona cuando el mismo elemento se abre simultáneamente en 2 pestañas diferentes

Problema: mantuve un elemento en particular expandido en una pestaña e intenté expandir el mismo elemento en otra pestaña cuando hago clic en el botón expandir en este punto, no puede buscar "cerrar sección" y va a si condición .

 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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!