Skip to content

Commit 1a0e97f

Browse files
authored
Merge pull request #63 from coreui/fix-layout-helper-ie-issue
v2.1.6
2 parents 0c40851 + 6da111b commit 1a0e97f

File tree

4 files changed

+25
-11
lines changed

4 files changed

+25
-11
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
### [@coreui/react](https://coreui.io/) changelog
22

3+
##### `v2.1.6`
4+
- fix(LayoutHelper) Multiple arguments for add() & remove() - ie issue
5+
- fix: lock `react-router-dom` to `~4.3.1`
6+
7+
###### dependencies update
8+
- update `react-router-dom` to `~4.3.1`
9+
- update `enzyme-adapter-react-16` to `^1.11.2`
10+
- update `eslint` to `^5.15.3`
11+
- update `react` to `^16.8.5`
12+
- update `react-dom` to `^16.8.5`
13+
314
##### `v2.1.5`
415
- fix: iOS 9 Safari sidebar toggle force issue #61 - thanks @Tubek
516
- refactor(toggle-classes): keep `force` for the toggle method

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@coreui/react",
3-
"version": "2.1.5",
3+
"version": "2.1.6",
44
"description": "CoreUI React Bootstrap 4 components",
55
"license": "MIT",
66
"author": {
@@ -41,23 +41,23 @@
4141
"prop-types": "^15.7.2",
4242
"react-onclickout": "^2.0.8",
4343
"react-perfect-scrollbar": "^1.4.4",
44-
"react-router-dom": "^4.3.1",
44+
"react-router-dom": "~4.3.1",
4545
"reactstrap": "^7.1.0"
4646
},
4747
"peerDependencies": {
48-
"@coreui/coreui": "^2.1.7",
49-
"react": "16.x"
48+
"@coreui/coreui": "^2.1.9",
49+
"react": "^16.8.5"
5050
},
5151
"devDependencies": {
5252
"babel-eslint": "^10.0.1",
5353
"enzyme": "^3.9.0",
54-
"enzyme-adapter-react-16": "^1.10.0",
55-
"eslint": "^5.15.1",
54+
"enzyme-adapter-react-16": "^1.11.2",
55+
"eslint": "^5.15.3",
5656
"eslint-plugin-import": "^2.16.0",
5757
"eslint-plugin-react": "^7.12.4",
5858
"nwb": "^0.23.0",
59-
"react": "^16.8.3",
60-
"react-dom": "^16.8.3",
59+
"react": "^16.8.5",
60+
"react-dom": "^16.8.5",
6161
"sinon": "^5.1.1"
6262
},
6363
"repository": {

src/Shared/layout/layout.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,13 @@ class LayoutHelper {
2424
const sidebar = document.querySelector('.sidebar-nav');
2525
if (sidebar) {
2626
if (toggle) {
27-
sidebar.classList.add('ps', 'ps-container', 'ps--active-y');
27+
sidebar.classList.add('ps');
28+
sidebar.classList.add('ps-container');
29+
sidebar.classList.add('ps--active-y');
2830
} else {
29-
sidebar.classList.remove('ps', 'ps-container', 'ps--active-y');
31+
sidebar.classList.remove('ps');
32+
sidebar.classList.remove('ps-container');
33+
sidebar.classList.remove('ps--active-y');
3034
}
3135
}
3236
}

src/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,3 @@ export AppSidebarMinimizer from './SidebarMinimizer';
1313
export AppSidebarNav from './SidebarNav';
1414
export AppSidebarToggler from './SidebarToggler';
1515
export AppSwitch from './Switch';
16-
// export AppLayout from './Shared';

0 commit comments

Comments
 (0)