ionic-team / stencil

A toolchain for building scalable, enterprise-ready component systems on top of TypeScript and Web Component standards. Stencil components can be distributed natively to React, Angular, Vue, and traditional web developers from a single, framework-agnostic codebase.
https://stenciljs.com
Other
12.57k stars 787 forks source link

bug: newly added slots are reordered when the container component's attribute set dynamically #5969

Closed yigityuce closed 2 months ago

yigityuce commented 2 months ago

Prerequisites

Stencil Version

4.21.0

Current Behavior

Requirements:

Steps:

Rationale:

prepend:

image

append:

image

Expected Behavior

Current:

image

Expected:

image

System Info

System: node 18.20.2
    Platform: darwin (23.6.0)
   CPU Model: Apple M3 Pro (12 cpus)
    Compiler: /Users/yigit.yuce/Documents/Projects/personal/yigityuce.github/stencil-v4-sc-new-child-relocation/node_modules/@stencil/core/compiler/stencil.js
       Build: 1724698030
     Stencil: 4.21.0 🐷
  TypeScript: 5.5.3
      Rollup: 2.56.3
      Parse5: 7.1.2
      jQuery: 4.0.0-pre
      Terser: 5.31.1

Steps to Reproduce

stated above

Code Reproduction URL

https://github.com/yigityuce/stencil-v4-sc-new-child-relocation

Additional Information

No response

tanner-reits commented 2 months ago

@yigityuce Thanks for the issue! I've confirmed the problem and I'll take a look at your PR first thing tomorrow!

yigityuce commented 2 months ago

closing since the PR is merged. thanks all! 🚀

christian-bromann commented 1 month ago

A fix for this has been released in Stencil v4.22.0 🎉