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

492
Views
ReactTooltip.hide no oculta la información sobre herramientas al instante

Estoy tratando de crear una información sobre herramientas usando la información sobre react-tooltip con un botón de cierre. De acuerdo con la documentación , necesito usar ReactTooltip.hide pero parece que no funciona. Oculta la información sobre herramientas solo si muevo el cursor fuera de la información sobre herramientas, pero no al instante.

Usando React 17.0.2, react-tooltip 4.2.21.

Aquí hay un ejemplo rápido de CodeSandbox para ver mi problema: https://codesandbox.io/s/hidden-star-er2u66

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Una solución rápida se puede encontrar aquí

 const [tooltip, showTooltip] = useState(true); <> {tooltip && <ReactTooltip effect="solid" />} <p data-tip="hello world" onMouseEnter={() => showTooltip(true)} onMouseLeave={() => { showTooltip(false); setTimeout(() => showTooltip(true), 50); }} /> </>

Pregunta de cierre.

about 4 years ago · Juan Pablo Isaza Report
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!