Skip to content

Commit

Permalink
fix inputing numbers in todos input dialog from assigning to group
Browse files Browse the repository at this point in the history
  • Loading branch information
suchanlee committed Aug 2, 2020
1 parent af15071 commit bac87ff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/renderer/views/todos/components/TodosInputDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ export const TodosInputDialog = ({ groups, isOpen, onClose, addTodo }: TodosInpu
if (evt.key === "Enter") {
addTodo(group);
}

// prevent propagation as component binds to window keyup events to listen
// to numeric values for hotkeys support for adding todos to groups
evt.stopPropagation();
},
[group, addTodo]
);
Expand Down

0 comments on commit bac87ff

Please sign in to comment.