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
Get input text being called twice on a node that is found by parentNode.getVNodeById() returns null on the second time. First time returns expected output.
Reproducible Example
include karax / prelude
import karax / [kdom]
proccreateDom(): VNode=result=buildHtml(tdiv):
form:
input(id="username", placeholder="Username")
input(`type`="submit")
proconsubmit(ev: Event, node: VNode) =
ev.preventDefault()
let username = node.getVNodeById("username").getInputText
echo username
# To see value without error use 'asm "console.log(`username`);"' instead setRenderer createDom
The text was updated successfully, but these errors were encountered:
Issue
Get input text being called twice on a node that is found by
parentNode.getVNodeById()
returns null on the second time. First time returns expected output.Reproducible Example
The text was updated successfully, but these errors were encountered: