Skip to content

Fix target loss in shadow DOM by storing the target element #407

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jianghaotian
Copy link

This PR addresses part of the concerns raised in #314 .

This pull request includes changes to the InfiniteScroll component in src/index.tsx to fix an issue with target loss in the shadow DOM. The most important changes include adding a private _target property to store the target element and modifying the logic to use this stored target element if necessary.

Improvements to target handling in shadow DOM:

  • src/index.tsx: Added a private _target property to store the target element.
  • src/index.tsx: Modified the logic to use the stored _target element if the event target is not available, and ensured the _target is updated with the current target element.

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.

1 participant