diff --git a/src/toolbar/InsertModalBody.js b/src/toolbar/InsertModalBody.js index 9cc406190..4e27453f2 100644 --- a/src/toolbar/InsertModalBody.js +++ b/src/toolbar/InsertModalBody.js @@ -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) {