React Component passes Proxy object instead of Event object to the handler function
问题 I have prepared the following React Component (React version 1.5.2): var QuickSearch = React.createClass({ searchHandler: function(){ this.props.parent.props.dataSource.search = this.refs.SearchInput.value; this.props.parent.props.dataSource.setPage(1); this.props.parent.getData(); }, refreshHandler: function(){ this.props.parent.props.dataSource.search = this.refs.SearchInput.value; this.props.parent.getData(); }, myEventHandler: function(evt){ console.log(evt); if(evt.keyCode === 13) { evt