-
Notifications
You must be signed in to change notification settings - Fork 794
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
Fallbacked slots inside Light DOM are broken #2760
Comments
Just tested a few things and here's what I'm seeing. Example Componentimport { Component, h } from '@stencil/core';
@Component({
tag: 'my-component',
shadow: false,
})
export class MyComponent {
render() {
return <slot>FALLBACK</slot>;
}
} HTML <my-component></my-component>
<br><br>
<my-component>SLOTTED</my-component> Expected
Actual
This is with Stencil 2.3.0 and only occurs with |
If this is indeed what you're seeing, then #2650 fixes it and will be available in the next release. |
Thanks for the issue! This issue is being closed due to inactivity. If this is still an issue with the latest version of Stencil, please create a new issue and ensure the template is fully filled out. Thank you for using Stencil! |
Stencil version:
I'm submitting a:
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/
Current behavior:
Fallbacked slots are not working anymore. (on any browser)
Expected behavior:
When using a slot in a Light DOM stencil component, the default value set inside component slot is not replaced by slot content given by component consumer.
Instead, the content is happened eight after the fb-slot but, fb-slot remains visible.
Steps to reproduce:
Related code:
// insert any relevant code here
Other information:
The text was updated successfully, but these errors were encountered: