Testing dom diffing

This commit is contained in:
2017-09-11 18:51:35 +02:00
parent fdb37e711e
commit 4a0ac93064
5 changed files with 16 additions and 3 deletions

View File

@@ -121,6 +121,13 @@ class TodoApp: Komponent() {
onKeyPressFunction = { e ->
if (e is KeyboardEvent && e.keyCode == 13) {
addTodo(e)
val target = e.target
if (target is HTMLInputElement) {
target.value = ""
target.defaultValue = ""
}
}
}
}