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

462
Vistas
React-tabulator: rowClick throws an error in react functional component

Environment Details:
"react": "^18.1.0",
"react-dom": "^18.1.0",
"react-tabulator": "^0.18.1",

Issue Description:
While clicking on a row along with getting the required information I'm getting an error. Here it is:

Uncaught TypeError: component.getComponent is not a function <br>
at Interaction.dispatchEvent (Interaction.js:293:1) <br>
at Interaction.handle (Interaction.js:239:1) <br>
at InternalEventBus.js:130:1 <br>
at Array.forEach () <br>
at InternalEventBus._dispatch (InternalEventBus.js:129:1) <br>
at InteractionManager.dispatch (CoreFeature.js:78:1) <br>
at InteractionManager.triggerEvents (InteractionMonitor.js:302:1) <br>
at InteractionManager.track (InteractionMonitor.js:204:1)

Question:
How can I fix it or simply not to get that error ?

Code:

const Component = () => 
//some constants here

const { loading } = useQuery(MY_QUERY {
 onCompleted: (data) => {
 //some code here
},

 onError: (err) => {
 //some code here
 },
}

const rowClickHandler = (e, row) => {
 console.log(e, row.getData());
}

return (
 //some code here
 <>
  //other components

  <ReactTabulator
   data={data}
   columns={columns}
   events={{ rowClick: rowClickHandler }}
  />

 </>
)

}

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