DEV Community

Annika-12
Annika-12

Posted on

onClick event in Strapi doesn't work

I am working with Strapi, react.js and Apollo. My problem is that I have implemented the following event in the editor of Strapi:

Alt Text

onclick="window.trackDownload('mapal_mitte', 'MAPAL_Neuheiten-2021_EN')"

but the onclick event raises the following error :

Uncaught Error: Minified React error #231;

full message:

Expected onClick listener to be a function, instead got a value of string type.

Does anyone know what I did wrong?

Top comments (1)

Collapse
 
kgnfth profile image
kgnfth

No i dont know