Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

Commit

Permalink
fix: trigger keepInView when container is set
Browse files Browse the repository at this point in the history
fixes #47
  • Loading branch information
TheSharpieOne committed Oct 12, 2020
1 parent eddd54b commit 415855a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/BlockUi.js
Expand Up @@ -63,6 +63,9 @@ class BlockUi extends Component {

setRef(name, ref) {
this[name] = ref;
if (ref && name === 'container') {
this.keepInView();
}
}

attachListeners() {
Expand Down

0 comments on commit 415855a

Please sign in to comment.