Skip to content

Commit

Permalink
Open Cell Editor only works when cell is editable
Browse files Browse the repository at this point in the history
  • Loading branch information
diogofcunha committed May 11, 2016
1 parent fe599f7 commit 3ab9147
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/addons/grids/ReactDataGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,10 @@ const ReactDataGrid = React.createClass({
},

openCellEditor(rowIdx, idx) {
if (!this.canEdit(idx)) {
return;
}

let selected = {rowIdx, idx};
if (this.hasSelectedCellChanged(selected)) {
this.setState({selected}, () => {
Expand Down

0 comments on commit 3ab9147

Please sign in to comment.