浏览代码

updateCellByUniqueId bug fix (#4870)

* updateCellByUniqueId bug fix

```
if (!params.hasOwnProperty('id') ||
      !params.hasOwnProperty('field') ||
      !params.hasOwnProperty('value')) {
      return
    }
```

Was preventing passing multiples entries to updateCellByUniqueId.

Other methods may have to be fixed.

* Update bootstrap-table.js

Co-authored-by: 文翼 <wenzhixin2010@gmail.com>
Denis Migdal 5 年之前
父节点
当前提交
ce4e1a0622
共有 1 个文件被更改,包括 0 次插入5 次删除
  1. 0 5
      src/bootstrap-table.js

+ 0 - 5
src/bootstrap-table.js

@@ -2288,11 +2288,6 @@ class BootstrapTable {
   }
 
   updateCellByUniqueId (params) {
-    if (!params.hasOwnProperty('id') ||
-      !params.hasOwnProperty('field') ||
-      !params.hasOwnProperty('value')) {
-      return
-    }
     const allParams = Array.isArray(params) ? params : [params]
 
     allParams.forEach(({id, field, value}) => {