Browse Source

Do not split field by '.' if there is such property in the item.

Do not split field by '.' if there is such property in the item.
Veselin Kutsarov 1 year ago
parent
commit
142e675f10
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/bootstrap-table.js

+ 1 - 1
src/bootstrap-table.js

@@ -1072,7 +1072,7 @@ class BootstrapTable {
           const column = this.columns[this.fieldsColumnsIndex[key]]
           let value
 
-          if (typeof key === 'string') {
+          if (typeof key === 'string' && !item.hasOwnProperty(key)) {
             value = item
             const props = key.split('.')