Use jQuery remove to remove children row elements

We can not rely on the row node to always have a parent node as toggle_row is
a callback to an event that can be executed after the row has already be
removed from the DOM.

Closes #13198
(grafted from 7e3ab58418656857275f3888386d840ca336858f)

--HG--
branch : 7.0
This commit is contained in:
Cédric Krier
2024-04-16 09:16:24 +02:00
parent e270e564e1
commit 024e58b716
+1 -2
View File
@@ -1828,8 +1828,7 @@
collapse_children: function() {
for (const row of this.rows) {
row.collapse_children();
var node = row.el[0];
node.parentNode.removeChild(node);
row.el.remove();
}
this.rows = [];
},