DEV Community


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?

Discussion (1)

kgnfth profile image

No i dont know