Skip to content

Commit

Permalink
fix #670
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenFang committed Sep 3, 2016
1 parent 0155d9c commit 85000f8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/TableColumn.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class TableColumn extends Component {
}
/* eslint no-unused-vars: [0, { "args": "after-used" }] */
shouldComponentUpdate(nextProps, nextState) {
console.log('@@');
const { children } = this.props;
let shouldUpdated = this.props.width !== nextProps.width
|| this.props.className !== nextProps.className
Expand All @@ -24,7 +25,8 @@ class TableColumn extends Component {
if (children.props.type === 'checkbox' || children.props.type === 'radio') {
shouldUpdated = shouldUpdated ||
children.props.type !== nextProps.children.props.type ||
children.props.checked !== nextProps.children.props.checked;
children.props.checked !== nextProps.children.props.checked ||
children.props.disabled !== nextProps.children.props.disabled;
} else {
shouldUpdated = true;
}
Expand All @@ -44,6 +46,10 @@ class TableColumn extends Component {
}
}

componentWillUpdate() {
console.log('update column');
}

handleCellEdit = e => {
if (this.props.cellEdit.mode === Const.CELL_EDIT_DBCLICK) {
if (document.selection && document.selection.empty) {
Expand Down

0 comments on commit 85000f8

Please sign in to comment.