Skip to content

Commit

Permalink
update stickyColumns list too (#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
qiyundai authored Nov 14, 2024
1 parent 546871e commit 15c6899
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ const ATTENDEE_ATTR_MAP = [
},
];

const stickyColumns = ['registrationStatus', 'checkedIn'];

const FILTER_MAP = {
companyName: [],
jobTitle: [],
Expand Down Expand Up @@ -348,7 +350,7 @@ function buildTableHeaders(props, config) {

th.append(getIcon('chev-down'), getIcon('chev-up'));

if (['type', 'checkedIn'].includes(key)) th.classList.add('actions', `sticky-right-${arr.length - i}`);
if (stickyColumns.includes(key)) th.classList.add('actions', `sticky-right-${arr.length - i}`);
th.classList.add('sortable');
th.dataset.field = key;
});
Expand Down

0 comments on commit 15c6899

Please sign in to comment.