/* @flow */
/**
 * @jsx React.DOM
 */
'use strict';

var React                   = require('react');

var CheckBoxEditor = React.createClass({


  PropTypes : {
    value : React.PropTypes.bool.isRequired,
    rowIdx : React.PropTypes.number.isRequired
  },

  render(): ?ReactElement{
    return (<input className="react-grid-CheckBox" type="checkbox" checked={this.props.value} onChange={this.handleChange} />);
  },

  handleChange(e: Event){
    this.props.column.onRowSelect(this.props.rowIdx)
  },

  shouldComponentUpdate(nextProps: any, nextState: any): boolean{
    return this.props.value != nextProps.value;
  }

});

module.exports = CheckBoxEditor;

@@ -279,16 +279,87 @@
 lement%7B%0A
+    var checked = this.props.value != null ? this.props.value : false;%0A
     retu
@@ -430,34 +430,24 @@
 ed=%7B
-this.props.value%7D onChange
+checked%7D onClick
 =%7Bth
@@ -500,16 +500,41 @@
 Event)%7B%0A
+    e.stopPropagation();%0A
     this
@@ -582,132 +582,11 @@
 dx)%0A
+
   %7D
-,%0A%0A  shouldComponentUpdate(nextProps: any, nextState: any): boolean%7B%0A    return this.props.value != nextProps.value;%0A  %7D%0A
 %0A%7D);

replace onChange with onClick