Skip to content

Commit f304c66

Browse files
committed
Delete the ordering icons for good
1 parent ef1d267 commit f304c66

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

packages/dt_for_itables/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 2.3.2+dev
2+
3+
- We have made sure that the ordering icons on empty headers do not reappear when ordering a column
4+
15
# 2.3.2 (2025-05-17)
26

37
- We have fixed an issue with `selected_rows` when `filtered_row_count` was not explicitly set.

packages/dt_for_itables/src/index.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,7 @@ class ITable {
126126
else if (jQuery(this).find('span.dt-column-title').text() === '' && jQuery(this).find('span.dt-column-title').children().length === 0) {
127127
// Remove the sorting icon on empty headers
128128
jQuery(this).attr('data-dt-order', 'disable');
129-
// Remove any children with the 'dt-column-order' class
130-
jQuery(this).children('.dt-column-order').remove();
131-
// Remove the dt-orderable-asc and dt-orderable-desc classes
132-
jQuery(this).removeClass('dt-orderable-asc dt-orderable-desc');
129+
jQuery(this).empty();
133130
}
134131
else {
135132
// Apply the icon-only data-dt-order attribute

0 commit comments

Comments
 (0)