Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Commit

Permalink
fix: override viewEditorRenderMode on row level #1360
Browse files Browse the repository at this point in the history
  • Loading branch information
wiadev committed Nov 24, 2017
1 parent 703b0ca commit 0a33bed
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/table/TableItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ class TableItem extends Component {
}

closeTableField = (e) => {
const { changeListenOnTrue } = this.props;
const {activeCell} = this.state;

this.handleEditProperty(e);
Expand Down Expand Up @@ -167,8 +166,10 @@ class TableItem extends Component {
const supportFieldEdit = mainTable &&
this.isAllowedFieldEdit(item);
const property = item.fields[0].field;
let isEditable = item.viewEditorRenderMode ===
VIEW_EDITOR_RENDER_MODES[2];
let isEditable = ((cells[property] &&
cells[property].viewEditorRenderMode
) || item.viewEditorRenderMode
) === VIEW_EDITOR_RENDER_MODES[2];

let widgetData = item.fields.map(
(prop) => {
Expand Down

0 comments on commit 0a33bed

Please sign in to comment.