I have implemented react component on change event like this:
NewItem = React.createClass({
componentWillMount: function() {
this._searchBoxHandler = debounce(this._searchBoxHandler, 500);
},
_searchBoxHandler: function(event) {
this.context.flux.getActions('order').setOrders(...);
},
render: function () {
...
var _self = this;
return (<TextField onChange={_self._searchBoxHandler} />)
})
});
I've done this implemention by checking this answer (Good idea section): https://stackoverflow.com/a/28046731/842622
But it's not working. I'm always having 'Cannot read property 'value' of null' from event object.
Am I missing something here?