Skip to content

Commit

Permalink
[FIX_V4] - fix scrollIndication hydration exception
Browse files Browse the repository at this point in the history
  • Loading branch information
liatv committed Jan 28, 2024
1 parent 6c55d10 commit 56e7ff0
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,12 @@ export default class ScrollIndicator extends React.Component {
) {
try {
scrollingElement
.horizontal()
.addEventListener('scroll', this.onHorizontalScroll);
?.horizontal()
?.addEventListener('scroll', this.onHorizontalScroll);

scrollingElement
.horizontal()
.addEventListener(
?.horizontal()
?.addEventListener(
'scrollTransition',
this.onHorizontalScrollTransition
);
Expand Down

0 comments on commit 56e7ff0

Please sign in to comment.