Browse Source

Fix #2963: singleSelect + maintainSelected + pagination bug

zhixin 8 years ago
parent
commit
5e57ef8d0c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/bootstrap-table.js

+ 1 - 1
src/bootstrap-table.js

@@ -1952,7 +1952,7 @@
                 checked = $this.prop('checked'),
                 row = that.data[$this.data('index')];
 
-            if ($(this).is(':radio')) {
+            if ($(this).is(':radio') || that.options.singleSelect) {
                 $.each(that.options.data, function (i, row) {
                     row[that.header.stateField] = false;
                 });