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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Svelte 5: contenteditable="true" with bind:innerText breaks the output of {@render children()} #11653

Open
Serator opened this issue May 16, 2024 · 2 comments
Milestone

Comments

@Serator
Copy link

Serator commented May 16, 2024

Describe the bug

The same thing happens with bind:innerHTML / bind:textContent.

Reproduction

Logs

No response

System Info

-

Severity

annoyance

@dummdidumm
Copy link
Member

May be related to this breaking change in the sense of "children render comes in too late, binding has already taken over". Probably reasonable to look into changing this so that at least the initial value still comes in.

Would you expect updates to the content in the parent be reflected in the bound inner text in the child? Because that breaking change would change that.

@dummdidumm dummdidumm added this to the 5.0 milestone May 16, 2024
@Serator
Copy link
Author

Serator commented May 16, 2024

Would you expect updates to the content in the parent be reflected in the bound inner text in the child?

Yeah, but with contenteditable turned off (#11654).

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

2 participants