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

251
Views
Evento onClick con pantalla táctil: reaccionar

En mi aplicación React, tengo un div con el evento onClick para colapsar la barra lateral, funciona bien, pero en las pantallas táctiles activa el evento solo con un doble toque. ¿Cómo puedo deshabilitar esa funcionalidad?

Cuando toco una vez en div , primero está configurando el estado activo como verdadero y justo después como falso

 <div onClick={(e) => handleSideBar} className='dashboard-arrow-dark dashboard-arrow d-flex align-items-center justify-content-center'> {isActive ? <ArrowRightIcon /> : <ArrowLeftIcon/>} </div>
 // collapse side bar const handleSideBar = (e) => { e.preventDefault() setIsActive(!isActive) }
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!