Voglio interrompere l'evento click da pasticciare. Pertanto ho aggiunto e.stopPropagation() nel mio codice. Ho sempre un errore nella console, che dice: Uncaught TypeError: e.stopPropagation is not a function
Come chiamare stopPropagation in reactjs?
Qual è il modo giusto per impostare stopPropagation in reactjs?
handleClick: function(index, e) {
e.stopPropagation();
...
},
potresti pubblicare il tuo codice? dove chiami 'handleClick'? Forse nel primo argomento 'Event' object - prova a chiamare' console.log (typeof index.stopPropagation) ' –