Skip to content
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

Revert "fix(synthetic-shadow): retargeting does not correctly account for native shadow roots" #4047

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

ekashida
Copy link
Member

Reverts #4018

Our event propagation polyfill does not account for DOM mutations and can only imitate the correct native behavior if the event target is connected. In cases where the actual target becomes disconnected during propagation, the retargeting logic incorrectly returns null because we can no longer compute the composed path correctly.

We should preserve the existing behavior which is to always provide access to the actual target if it is disconnected. This means that we should also check that the root node of the disconnected target is not a native shadow root, in addition to the original check for synthetic shadow root.

@ekashida ekashida requested a review from a team as a code owner March 12, 2024 00:09
@ekashida ekashida merged commit 596502d into master Mar 12, 2024
9 checks passed
@ekashida ekashida deleted the revert-4018-ekashida/retargeting-with-native branch March 12, 2024 01:10
ravijayaramappa added a commit that referenced this pull request Mar 12, 2024
* refactor: organize API versioning tests (#4040)

* fix: disable form association entirely on older API versions (#4041)

Fixes #3929

* Revert "fix(synthetic-shadow): retargeting does not correctly account for nat…" (#4047)

This reverts commit 13cd45f.

* chore: routine dependencies update (#4046)

* chore: routine dependencies update

* fix: revert prettier updates

* chore: update husky

* chore: update husky

* fix: disable ts rule

* chore: v6.3.2 (#4048)

---------

Co-authored-by: Nolan Lawson <nlawson@salesforce.com>
Co-authored-by: Eugene Kashida <ekashida@gmail.com>
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.

None yet

2 participants