diff --git a/api/js/etemplate/et2_widget_grid.js b/api/js/etemplate/et2_widget_grid.js index 115cb97998..cff55a952d 100644 --- a/api/js/etemplate/et2_widget_grid.js +++ b/api/js/etemplate/et2_widget_grid.js @@ -707,7 +707,7 @@ var et2_grid = /** @class */ (function (_super) { // Set up sortable $node.sortable({ // Header does not participate in sorting - items: "tr:not(.th)", + items: "> tbody > tr:not(.th)", distance: 15, cancel: this.options.sortable_cancel, placeholder: this.options.sortable_placeholder, diff --git a/api/js/etemplate/et2_widget_grid.ts b/api/js/etemplate/et2_widget_grid.ts index 57698e6a69..ff96f7decb 100644 --- a/api/js/etemplate/et2_widget_grid.ts +++ b/api/js/etemplate/et2_widget_grid.ts @@ -965,7 +965,7 @@ export class et2_grid extends et2_DOMWidget implements et2_IDetachedDOM, et2_IAl // Set up sortable $node.sortable({ // Header does not participate in sorting - items: "tr:not(.th)", + items: "> tbody > tr:not(.th)", distance: 15, cancel: this.options.sortable_cancel, placeholder: this.options.sortable_placeholder,