-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Closed
Labels
🔨 p3-minor-bugPriority 3: this fixes a bug, but is an edge case that only affects very specific usage.Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.scope: custom elements
Description
Vue version
3.5.13
Link to minimal reproduction
Steps to reproduce
Click on the button multiple times and see Cannot set properties of null (setting 'parent')
What is expected?
No issue with setting parent and Custom element two content
renders properly when we click on the button multiple times
What is actually happening?
First time custom elements are mounted properly, then we hide them clicking on the button.
When we click on the button again to show them once again, the exception is thrown on this line of code
System Info
System:
OS: macOS 15.3.2
CPU: (12) arm64 Apple M3 Pro
Memory: 92.97 MB / 18.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.13.1 - ~/Library/pnpm/node
npm: 10.9.2 - ~/Library/pnpm/npm
pnpm: 9.14.2 - ~/Library/pnpm/pnpm
Browsers:
Chrome: 135.0.7049.85
Safari: 18.3.1
npmPackages:
vue: latest => 3.5.13
Any additional comments?
The issue is related to the slots within custom elements created from Vue 3 components. Looks like something is related to custom elements lifecycle and how Vue 3 uses them.
rbecheras
Metadata
Metadata
Assignees
Labels
🔨 p3-minor-bugPriority 3: this fixes a bug, but is an edge case that only affects very specific usage.Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.scope: custom elements