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

93
Views
Agregar información sobre herramientas a la entrada hace que `findDOMNode esté obsoleto en el error StrictMode` - Ant Design

Me gustaría agregar información sobre herramientas a un campo de entrada. Para hacer esto, envuelvo el campo de entrada en la información sobre herramientas y se muestra como se esperaba. Sin embargo, cuando paso el cursor por encima, imprime una advertencia.

Información sobre herramientas/Entrada

 <Tooltip title="Title"> <Input /> </Tooltip>

Advertencia

 Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of Input which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node span ClearableLabeledInput@http://localhost:3000/static/js/bundle.js:15995:90 Input@http://localhost:3000/static/js/bundle.js:16374:90 Trigger@http://localhost:3000/static/js/bundle.js:59906:92 Tooltip@http://localhost:3000/static/js/bundle.js:58900:26 ./node_modules/antd/es/tooltip/index.js/Tooltip<@http://localhost:3000/static/js/bundle.js:20652:62

Puedo ocultar el error eliminando <React.StrictMode> pero me gustaría corregir este error.

¿Es esto un error en Ant Design o estoy agregando la Tooltip incorrectamente?

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

0

Esto parece un problema con los componentes de Ant Design. Por ejemplo, usar el DOM simple <input> no provoca este error.

Habiendo dicho eso, una solución es simplemente envolver <Input> de Ant en un elemento DOM simple como <div> lo resuelve:

 <Tooltip title="prompt text"> <div> <Input /> </div> </Tooltip>

Puede ver un ejemplo de trabajo en este sandbox

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!