better event merging for components
This commit is contained in:
parent
e4d8cb4c20
commit
2ced690387
3 changed files with 12 additions and 8 deletions
|
|
@ -115,7 +115,7 @@ proc createDom(): VNode =
|
|||
renderPerson(text, index)
|
||||
tdiv:
|
||||
newTextInput(VStyle(), &persons.len, ""):
|
||||
proc onkeyuplater(ev: Event; n: VNode) =
|
||||
proc onkeyupenter(ev: Event; n: VNode) =
|
||||
let v = n.value
|
||||
if v.len > 0:
|
||||
persons.add v
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue