diff --git a/src/scrollbar.js b/src/scrollbar.js index 8a71d85..808cddf 100644 --- a/src/scrollbar.js +++ b/src/scrollbar.js @@ -36,6 +36,10 @@ export default class ScrollBar extends Component { }); } + componentDidUpdate() { + ps.update(this._container); + } + componentWillUnmount() { // unhook up evens Object.keys(this._handlerByEvent).forEach((value, key) => {