0
GridItemのonMouseDownをオーバーライドするにはどうすればよいですか?反応グリッドレイアウトでのonMouseDownのオーバーライド
私はこのようなものがあります:それは私がapply
を必要としないが判明し
react-draggable.js:1050 Uncaught TypeError: Cannot read property 'button' of undefined
GridItemのonMouseDownをオーバーライドするにはどうすればよいですか?反応グリッドレイアウトでのonMouseDownのオーバーライド
私はこのようなものがあります:それは私がapply
を必要としないが判明し
react-draggable.js:1050 Uncaught TypeError: Cannot read property 'button' of undefined
:
this.props.onMouseDown(e);
class TrackItem extends React.Component {
onMouseDown(e) {
this.props.onMouseDown.apply(e);
}
render() {
return <div onMouseDown={this.onMouseDown.bind(this)}>item</div>;
}
}
エラーを生成