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

[@engine-core] Inconsistent disconnectedCallback invocation order #2713

Open
Tracked by #2964
pmdartus opened this issue Feb 25, 2022 · 0 comments
Open
Tracked by #2964

[@engine-core] Inconsistent disconnectedCallback invocation order #2713

pmdartus opened this issue Feb 25, 2022 · 0 comments

Comments

@pmdartus
Copy link
Member

Description

Steps to Reproduce

Currently, the LWC engine unmounts all the shadow elements in reverse order and the slotted elements in reserve order when synthetic shadow DOM is enabled. Let's take the following shadow DOM component template to illustrate this:

<template>
    <x-leaf name="before-container"></x-leaf>
    <x-shadow-container>
        <x-leaf name="slotted-a"></x-leaf>
        <x-leaf name="slotted-b"></x-leaf>
    </x-shadow-container>
    <x-leaf name="after-container"></x-leaf>
</template>

Expected Results

leaf:before-container
shadowContainer
leaf:slotted-a
leaf:slotted-b
leaf:after-container

Actual Results

leaf:after-container
shadowContainer
leaf:slotted-a
leaf:slotted-b
leaf:before-container

Browsers Affected

All

Version

  • LWC: 2.10.0
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

No branches or pull requests

1 participant