diff --git a/src/view/tree.js b/src/view/tree.js
index 56d55e9890..fd1a27b058 100644
--- a/src/view/tree.js
+++ b/src/view/tree.js
@@ -200,7 +200,8 @@
sum_row.append(jQuery('
| '));
this.tfoot = jQuery('');
this.tfoot.append(sum_row);
- this.table.append(this.tfoot);
+ // insert before thead to not hide drop-down from thead
+ this.table.prepend(this.tfoot);
}
if (this.children_field) {