Skip to content

Commit

Permalink
Update data-table-class.js (#4071)
Browse files Browse the repository at this point in the history
  • Loading branch information
DAnn2012 committed Sep 6, 2022
1 parent 410a194 commit cd03564
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/components/data-table/data-table-class.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ class DataTable extends Framework7Class {
table.$el.find('tbody td:not(.checkbox-cell)').each((el) => {
const $el = $(el);
const elIndex = $el.index();
const collpsibleTitle = $el.attr('data-collapsible-title');
if (!collpsibleTitle && collpsibleTitle !== '') {
const collapsibleTitle = $el.attr('data-collapsible-title');
if (!collapsibleTitle && collapsibleTitle !== '') {
$el.attr('data-collapsible-title', table.$el.find('thead th').eq(elIndex).text());
}
});
Expand Down

0 comments on commit cd03564

Please sign in to comment.