Browse Source

Merge pull request #2037 from Falseee/fix-bad-selector

fix(js): table elements inside bootstrap table bug
wenzhixin 9 years ago
parent
commit
f057e50b67
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/bootstrap-table.js

+ 1 - 1
src/bootstrap-table.js

@@ -658,7 +658,7 @@
             row._class = $(this).attr('class');
             row._data = getRealDataAttr($(this).data());
 
-            $(this).find('td').each(function (x) {
+            $(this).find('>td').each(function (x) {
                 var $this = $(this),
                     cspan = +$this.attr('colspan') || 1,
                     rspan = +$this.attr('rowspan') || 1,