You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(This happens when typing the solution out as well as when you click "Show me" to have the solution automatically applied.)
Screen capture (click to view at full resolution):
Additionally, the other suggestion of binding textContent also throws an error:
'textContent' is not a valid binding
However, text works:
I haven't already looked into the svelte code to see whether this is supposed to work or whether the tutorial is outdated. I may have some time to dig in and answer that later, but I figured I'd open the issue since other people might already know the answer. I'd be happy to help with a PR to fix the tutorial if it is indeed a documentation issue. (I can also try to submit a PR if it's a svelte bug, but that will probably require getting a bit more familiar with the code first.)
The text was updated successfully, but these errors were encountered:
This is released in 3.6.0 — the bindings got renamed to innerHTML and textContent, because they're just referencing properties of the element (and this is how existing bindings work). Thank you!
I was running with Svelte 3.5.4:
Now when I go back to the same page in the tutorial it's running Svelte 3.6.1 and appears things are working as expected:
When applying the solution to the "contenteditable bindings" step of the tutorial, an error is thrown:
(This happens when typing the solution out as well as when you click "Show me" to have the solution automatically applied.)
Screen capture (click to view at full resolution):
Additionally, the other suggestion of binding
textContent
also throws an error:However,
text
works:I haven't already looked into the svelte code to see whether this is supposed to work or whether the tutorial is outdated. I may have some time to dig in and answer that later, but I figured I'd open the issue since other people might already know the answer. I'd be happy to help with a PR to fix the tutorial if it is indeed a documentation issue. (I can also try to submit a PR if it's a svelte bug, but that will probably require getting a bit more familiar with the code first.)
The text was updated successfully, but these errors were encountered: