Skip to content

Commit

Permalink
fix: should execute enterViewport event with i13nNode (#572)
Browse files Browse the repository at this point in the history
  • Loading branch information
danhuang1202 authored Apr 25, 2023
1 parent cfecc92 commit 720da20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useViewportDetect.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const useViewportDetect = ({
}) => {
const onEnterViewport = useCallback(() => {
node.setIsInViewport(true);
executeEvent?.('enterViewport');
executeEvent?.('enterViewport', {i13nNode: node});
}, [executeEvent, node]);

const onLeaveViewport = useCallback(() => {
Expand Down

0 comments on commit 720da20

Please sign in to comment.