diff --git a/package.json b/package.json index 340f34c0..db627cbf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "datatable-translatable", - "version": "1.2.2", + "version": "1.2.3", "license": "MIT", "description": "A Component Library for Translating DataTables using React and MaterialUI.", "homepage": "https://datatable-translatable.netlify.com/", diff --git a/src/components/datatable/DataTable.js b/src/components/datatable/DataTable.js index df064134..bf0d822e 100644 --- a/src/components/datatable/DataTable.js +++ b/src/components/datatable/DataTable.js @@ -189,6 +189,10 @@ function DataTable({ [columnsShow] ); + if(columnsShow){ + localStorage.setItem('StoredColumn', columnsShow); + } + // Scroll to bottom when navigating to previous page const scrollToBottom = (action) => { if (dataTableElement && dataTableElement.current) {