diff --git a/CHANGELOG.md b/CHANGELOG.md index 873b7ed4..2755ebe8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ ### [@coreui/react](https://coreui.io/) changelog +##### `v2.1.6` +- fix(LayoutHelper) Multiple arguments for add() & remove() - ie issue +- fix: lock `react-router-dom` to `~4.3.1` + +###### dependencies update +- update `react-router-dom` to `~4.3.1` +- update `enzyme-adapter-react-16` to `^1.11.2` +- update `eslint` to `^5.15.3` +- update `react` to `^16.8.5` +- update `react-dom` to `^16.8.5` + ##### `v2.1.5` - fix: iOS 9 Safari sidebar toggle force issue #61 - thanks @Tubek - refactor(toggle-classes): keep `force` for the toggle method diff --git a/package.json b/package.json index ed6b10df..da88ab00 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@coreui/react", - "version": "2.1.5", + "version": "2.1.6", "description": "CoreUI React Bootstrap 4 components", "license": "MIT", "author": { @@ -41,23 +41,23 @@ "prop-types": "^15.7.2", "react-onclickout": "^2.0.8", "react-perfect-scrollbar": "^1.4.4", - "react-router-dom": "^4.3.1", + "react-router-dom": "~4.3.1", "reactstrap": "^7.1.0" }, "peerDependencies": { - "@coreui/coreui": "^2.1.7", - "react": "16.x" + "@coreui/coreui": "^2.1.9", + "react": "^16.8.5" }, "devDependencies": { "babel-eslint": "^10.0.1", "enzyme": "^3.9.0", - "enzyme-adapter-react-16": "^1.10.0", - "eslint": "^5.15.1", + "enzyme-adapter-react-16": "^1.11.2", + "eslint": "^5.15.3", "eslint-plugin-import": "^2.16.0", "eslint-plugin-react": "^7.12.4", "nwb": "^0.23.0", - "react": "^16.8.3", - "react-dom": "^16.8.3", + "react": "^16.8.5", + "react-dom": "^16.8.5", "sinon": "^5.1.1" }, "repository": { diff --git a/src/Shared/layout/layout.js b/src/Shared/layout/layout.js index e6e06ee5..b5772169 100644 --- a/src/Shared/layout/layout.js +++ b/src/Shared/layout/layout.js @@ -24,9 +24,13 @@ class LayoutHelper { const sidebar = document.querySelector('.sidebar-nav'); if (sidebar) { if (toggle) { - sidebar.classList.add('ps', 'ps-container', 'ps--active-y'); + sidebar.classList.add('ps'); + sidebar.classList.add('ps-container'); + sidebar.classList.add('ps--active-y'); } else { - sidebar.classList.remove('ps', 'ps-container', 'ps--active-y'); + sidebar.classList.remove('ps'); + sidebar.classList.remove('ps-container'); + sidebar.classList.remove('ps--active-y'); } } } diff --git a/src/index.js b/src/index.js index c462f556..93bad494 100644 --- a/src/index.js +++ b/src/index.js @@ -13,4 +13,3 @@ export AppSidebarMinimizer from './SidebarMinimizer'; export AppSidebarNav from './SidebarNav'; export AppSidebarToggler from './SidebarToggler'; export AppSwitch from './Switch'; -// export AppLayout from './Shared';