johnny / jquery-sortable

A flexible, opinionated sorting plugin for jQuery
http://johnny.github.io/jquery-sortable/
Other
1.52k stars 441 forks source link

Wierd behavior of table sorting #197

Closed khamyl closed 8 years ago

khamyl commented 8 years ago

jQuery 1.8 FireFox

      <script type="text/javascript">
        // Sortable rows
        $('.sortable_table').sortable({
          containerSelector: 'table',
          itemPath: '> tbody',
          itemSelector: 'tr',
          placeholder: '<tr class="placeholder"/>'
        });
      </script>

This puts another <tbody> into table with class='<tr class="placeholder"/>' and finaly it looks like pulling out the whole table without the header (instead of one row) and moving it around, when trying to reorder.

khamyl commented 8 years ago

Never mind. My fault. Now I have some other issue like this.target.on is not a function but it has probably another reason. Sorry for bothering.