Skip to content

Commit e807bc9

Browse files
martin-petterssonnerdyman
authored andcommitted
fix: add browsingContext as a reactive dependency to updateInternalPosition
1 parent a4b00fa commit e807bc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/ReactCompareSlider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export const ReactCompareSlider = forwardRef<
131131
onPositionChange(internalPosition.current);
132132
}
133133
},
134-
[boundsPadding, onPositionChange, portrait],
134+
[boundsPadding, onPositionChange, portrait, browsingContext],
135135
);
136136

137137
// Update internal position when other user controllable props change.

0 commit comments

Comments
 (0)