diff --git a/src/extensions/editable/bootstrap-table-editable.js b/src/extensions/editable/bootstrap-table-editable.js index 1c9809e346..38f4ca949a 100644 --- a/src/extensions/editable/bootstrap-table-editable.js +++ b/src/extensions/editable/bootstrap-table-editable.js @@ -78,14 +78,15 @@ $.BootstrapTable = class extends $.BootstrapTable { const editableOpts = Utils.calculateObjectValue(column, column.editable, [index, row], {}) - const noEditFormatter = editableOpts.hasOwnProperty("noEditFormatter") && - editableOpts.noEditFormatter(value, row, index, field); + const noEditFormatter = editableOpts.hasOwnProperty('noEditFormatter') && + editableOpts.noEditFormatter(value, row, index, field) if (noEditFormatter) { - return noEditFormatter + return noEditFormatter } - let editableDataMarkup = "" + let editableDataMarkup = '' + $.each(editableOptions, (key, value) => { editableDataMarkup += ` ${key}="${value}"` }) @@ -93,7 +94,7 @@ $.BootstrapTable = class extends $.BootstrapTable { return `${result}` // expand all data-editable-XXX } })