Skip to content

Commit 036c3fd

Browse files
committed
fix #940
1 parent 55eea6f commit 036c3fd

File tree

3 files changed

+315
-163
lines changed

3 files changed

+315
-163
lines changed

packages/react-bootstrap-table2-overlay/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ export default options => loading =>
1111
componentDidMount() {
1212
if (loading) {
1313
const { wrapper } = this.overlay;
14-
const masker = wrapper.firstChild;
15-
const headerDOM = wrapper.parentElement.querySelector('thead');
16-
const bodyDOM = wrapper.parentElement.querySelector('tbody');
17-
const captionDOM = wrapper.parentElement.querySelector('caption');
14+
const masker = wrapper.current.firstChild;
15+
const headerDOM = wrapper.current.parentElement.querySelector('thead');
16+
const bodyDOM = wrapper.current.parentElement.querySelector('tbody');
17+
const captionDOM = wrapper.current.parentElement.querySelector('caption');
1818

1919
let marginTop = window.getComputedStyle(headerDOM).height;
2020
if (captionDOM) {

packages/react-bootstrap-table2-overlay/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
}
3838
],
3939
"dependencies": {
40-
"react-loading-overlay": "0.2.8"
40+
"react-loading-overlay": "1.0.1"
4141
},
4242
"peerDependencies": {
4343
"prop-types": "^15.0.0",

0 commit comments

Comments
 (0)