Skip to content

Commit cd17061

Browse files
committed
Detail view: Cleanup old tab content on change
Add event handler on tab change to remove all old tab content. This prevents potential conflicts with referencing widget data caused by old content laying around.
1 parent 6681682 commit cd17061

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

ui/scripts/ui/widgets/detailView.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1465,7 +1465,12 @@
14651465
}
14661466
}
14671467

1468-
$detailView.tabs();
1468+
$detailView.tabs({
1469+
select: function() {
1470+
// Cleanup old tab content
1471+
$detailView.find('.detail-group').children().remove();
1472+
}
1473+
});
14691474

14701475
return $detailView;
14711476
};

0 commit comments

Comments
 (0)