We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 75903eb + 665e459 commit 1f90631Copy full SHA for 1f90631
1 file changed
js/dataTables.fixedHeader.js
@@ -526,11 +526,13 @@ $.extend(FixedHeader.prototype, {
526
itemDom.placeholder = null;
527
}
528
529
- if (item === 'header') {
530
- itemDom.host.prepend(tablePart);
531
- }
532
- else {
533
- itemDom.host.append(tablePart);
+ if (!$.contains(itemDom.host[0], tablePart[0])) {
+ if (item === 'header') {
+ itemDom.host.prepend(tablePart);
+ }
+ else {
534
+ itemDom.host.append(tablePart);
535
536
537
538
if (itemDom.floating) {
0 commit comments