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
we get null after that commit e422087 when calling from chrome console
include karax / prelude
proccallback_getVNodeById(id: kstring): VNode {.exportc.} =getVNodeById(id) # null after e422087 when called from consoleprocmyonload(ev: Event; n: VNode) =echo n.dom ==nilechogetVNodeById(kstring"elementsArea").dom ==nil# prints false both before and after e422087proccreateDom*(): VNode=result=buildHtml(tdiv):
tdiv(id ="elementsArea"):
img(src =kstring"https://image.shutterstock.com/image-vector/dog-head-icon-flat-style-260nw-1126157240.jpg", onload=myonload)
setRenderer createDom, "ROOT"
callback_getVNodeById('elementsArea').dom
# after e422087
null
# before e422087
<div id="elementsArea"><img src="https://image.shutterstock.com/image-vector/dog-head-icon-flat-style-260nw-1126157240.jpg"></div>
The text was updated successfully, but these errors were encountered:
/cc @Araq after e422087 (avoid exponential DOM diffing) the following minimal example fails
before that it was working.
example 1
after
upon scrolling you'll get (in chrome console):
note:
this requires addEDIT: that was now mergedonload
forimg
#116 to have theonload
propertyexample 2 (related but different)
we get
null
after that commit e422087 when calling from chrome consoleThe text was updated successfully, but these errors were encountered: