diff --git a/src/components/ChooseCharacters/ChooseCharacters.jsx b/src/components/ChooseCharacters/ChooseCharacters.jsx index 2cd42b6..901c063 100644 --- a/src/components/ChooseCharacters/ChooseCharacters.jsx +++ b/src/components/ChooseCharacters/ChooseCharacters.jsx @@ -30,6 +30,10 @@ class ChooseCharacters extends Component { window.removeEventListener('scroll', this.testIsStartVisible); } + componentDidUpdate(prevProps, prevState) { + this.testIsStartVisible(); + } + testIsStartVisible() { if(this.startRef) { const rect = this.startRef.getBoundingClientRect();