Open harrysarson opened 5 years ago
Elm Virtual Dom diffing algorithm tries to remove the contentEditable
property by doing:
node.contentEditable = null;
which is not supported for contentEditable
.
You can produce the same error by doing in a javascript console:
document.body.contentEditable = null
This is a known bug traced here: bug #104 (specifically #81)
I guess that the work-arounds are:
attribute "contenteditable"
insteadEncode.bool False
instead of removing it from your attributesHtml.Keyed
with a different identifier to force the div
to be rebuilt
SSCCE: https://ellie-app.com/4TNwCtWm5HGa1
Notes
CLICK ME
to get the runtime error.True
toFalse
on line 38 (i.e. setting an attribute rather than a property) fixes this.True
toFalse
on line 39 (i.e. the value of the contentEditable property) does *not fix this.Discourse: https://discourse.elm-lang.org/t/why-do-i-get-a-runtime-error/3243/2