Skip to content

Commit

Permalink
removed the whiteSpace
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel-C-Johnson committed Dec 1, 2023
1 parent 85e8ad7 commit d191f47
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/components/datatable/DataTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ function DataTable({
[columnsShow, scrollToLastClicked]
);

if(columnsShow){
if (columnsShow) {
localStorage.setItem('StoredColumn', columnsShow);
}

Expand Down Expand Up @@ -285,8 +285,8 @@ function DataTable({
scrollToLastClicked();
}
},
onRowClick: (rowData,{ dataIndex }) => {
setLastClickedDataIndex(dataIndex);
onRowClick: (rowData, { dataIndex }) => {
setLastClickedDataIndex(dataIndex);
},
onChangePage: (action) => {
const prevPageNumber = currentPageNumber.current
Expand All @@ -303,17 +303,17 @@ function DataTable({
rowCell.classList.add('show');
});
const firstEditableContent = parentRow.querySelector('[contenteditable="true"]');
if ( firstEditableContent ) {
if (firstEditableContent) {
setTimeout(() => {
// Use setTimeout because https://stackoverflow.com/a/37162116/545378
firstEditableContent.focus();
});
}
}
}else{
if (action >= prevPageNumber){
} else {
if (action >= prevPageNumber) {
scrollToTop(action);
}else{
} else {
scrollToBottom(action)
}
}
Expand Down

0 comments on commit d191f47

Please sign in to comment.