Skip to content

Commit

Permalink
Simplify todo-mvc
Browse files Browse the repository at this point in the history
  • Loading branch information
sake92 committed Dec 8, 2020
1 parent 63a6736 commit 83d18d9
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -59,7 +59,6 @@ case class TodoComponent(
}

private def stopEditing(e: dom.Event, doUpdate: Boolean): Unit = {
todoService.editId$.set(None)
val editInput = e.target.asInstanceOf[dom.html.Input]
if (doUpdate) {
val newValue = editInput.value.trim
Expand All @@ -73,5 +72,6 @@ case class TodoComponent(
editInput.value = todo.name
editInput.blur()
}
todoService.editId$.set(None)
}
}

0 comments on commit 83d18d9

Please sign in to comment.