onblur event now works
This commit is contained in:
parent
44c7015a26
commit
d9330cbab9
2 changed files with 5 additions and 4 deletions
|
|
@ -38,7 +38,7 @@ proc editInput(i: int; d: cstring): VNode =
|
|||
entries[i] = val
|
||||
selectedEntry = -1
|
||||
result = enterInput("todo-edit", d, onTodoChange)
|
||||
#result.setOnfocuslost(proc (ev: Event; n: VNode) = selectedEntry = -1)
|
||||
result.setOnfocuslost(proc (ev: Event; n: VNode) = selectedEntry = -1)
|
||||
|
||||
proc createEntry(i: int; d: cstring; selected: bool): VNode =
|
||||
# implement caching:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue