fix: Pivot table not sorting formatted numeric column properly (#5709)

* fix: Pivot table not sorting formatted numeric column properly

* refactor(lint): fixed lint error
This commit is contained in:
Arpit
2018-09-13 03:37:44 +05:30
committed by Grace Guo
parent f482a6cf99
commit 4121d57d32

View File

@@ -62,6 +62,7 @@ function PivotTable(element, props) {
const tdText = $(this)[0].textContent;
if (!Number.isNaN(tdText) && tdText !== '') {
$(this)[0].textContent = d3format(format, tdText);
$(this).attr('data-sort', tdText);
}
});
});