Skip to content

Commit 5bd62b4

Browse files
committed
fix
1 parent 47f6e34 commit 5bd62b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/toolbar/InsertModalBody.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ class InsertModalBody extends Component {
5353
placeholder: editable.placeholder ? editable.placeholder : name
5454
};
5555
let fieldElement;
56-
56+
const defaultValue = editable.defaultValue || undefined;
5757
if (customInsertEditor) {
5858
const { getElement } = customInsertEditor;
5959
fieldElement = getElement(column, attr, 'form-control', ignoreEditable);
6060
} else {
61-
fieldElement = editor(editable, attr, format, '', undefined, ignoreEditable);
61+
fieldElement = editor(editable, attr, format, '', defaultValue, ignoreEditable);
6262
}
6363

6464
if (autoValue || hiddenOnInsert || !column.field) {

0 commit comments

Comments
 (0)