mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-01-04 08:38:50 +01:00
fix(todo): fix #7 adding empty todo item issue
This commit is contained in:
parent
a1046ce2b4
commit
c276c5535a
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ export class Todo {
|
|||
|
||||
addToDoItem($event) {
|
||||
|
||||
if ($event.which === 1 || $event.which === 13) {
|
||||
if (($event.which === 1 || $event.which === 13) && this.newTodoText.trim() != '') {
|
||||
|
||||
this.todoList.unshift({
|
||||
text: this.newTodoText,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue