Skip to content

fix: should execute enterViewport event with i13nNode#572

Merged
redonkulus merged 1 commit intoyahoo:masterfrom
danhuang1202:patch-230424
Apr 25, 2023
Merged

fix: should execute enterViewport event with i13nNode#572
redonkulus merged 1 commit intoyahoo:masterfrom
danhuang1202:patch-230424

Conversation

@danhuang1202
Copy link
Contributor

@danhuang1202 danhuang1202 commented Apr 24, 2023

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

Should execute enterViewport event with payload: {i13nNode: node}, or the enterViewport method in the plugin can not get the target i13nNode instance from payload argument.

ref: https://github.com/yahoo/react-i13n/blob/cb8d8f9b712636e646f90b6de8eb84d554e97dd1/docs/guides/createPlugins.md

@danhuang1202
Copy link
Contributor Author

@redonkulus Could you help review this PR ? Thanks.

Copy link
Collaborator

@redonkulus redonkulus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@redonkulus redonkulus merged commit 720da20 into yahoo:master Apr 25, 2023
@redonkulus
Copy link
Collaborator

published in react-i13n@3.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants