Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@coreui/react",
"version": "2.1.5",
"version": "2.1.6",
"description": "CoreUI React Bootstrap 4 components",
"license": "MIT",
"author": {
Expand Down Expand Up @@ -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": {
Expand Down
8 changes: 6 additions & 2 deletions src/Shared/layout/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}
}
Expand Down
1 change: 0 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ export AppSidebarMinimizer from './SidebarMinimizer';
export AppSidebarNav from './SidebarNav';
export AppSidebarToggler from './SidebarToggler';
export AppSwitch from './Switch';
// export AppLayout from './Shared';