module.exports = React.createClass({
click: function(e){
console.log(e)
},
render: function() {
return div({className: "thing1", children:[
div({className: "thing2", onClick: this.click})
]})
}
})
Zdarzenie, które zostało przekazane, zawiera cały obiekt kliknięcia, ale wartości są zerowe.React.js zdarzenie onClick zwracające wszystkie wartości puste
Object { dispatchConfig: null, dispatchMarker: null, nativeEvent: null, type: null, target: null, currentTarget: null, eventPhase: null, bubbles: null, cancelable: null, timeStamp: null, 22 more… }
Wszelkie pomysły?
Dziękuję, zrozumiałem, dobra odpowiedź. – boom
W celu prostego debugowania, wywołanie 'persist()' na zdarzeniu przed zalogowaniem może być dobrym obejściem. –