Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenFang committed May 15, 2017
1 parent 47f6e34 commit 5bd62b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/toolbar/InsertModalBody.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ class InsertModalBody extends Component {
placeholder: editable.placeholder ? editable.placeholder : name
};
let fieldElement;

const defaultValue = editable.defaultValue || undefined;
if (customInsertEditor) {
const { getElement } = customInsertEditor;
fieldElement = getElement(column, attr, 'form-control', ignoreEditable);
} else {
fieldElement = editor(editable, attr, format, '', undefined, ignoreEditable);
fieldElement = editor(editable, attr, format, '', defaultValue, ignoreEditable);
}

if (autoValue || hiddenOnInsert || !column.field) {
Expand Down

0 comments on commit 5bd62b4

Please sign in to comment.