浏览代码

Added data attribute support for ignoreClickToSelectOn option

zhixin 6 年之前
父节点
当前提交
eccd7c94cf
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/bootstrap-table.js

+ 1 - 1
src/bootstrap-table.js

@@ -1936,7 +1936,7 @@
           type === 'click' &&
           this.options.clickToSelect &&
           column.clickToSelect &&
-          !this.options.ignoreClickToSelectOn(target)
+          !Utils.calculateObjectValue(this.options, this.options.ignoreClickToSelectOn, [target])
         ) {
           const $selectItem = $tr.find(Utils.sprintf('[name="%s"]', this.options.selectItemName))
           if ($selectItem.length) {