Fixed task editing input enter handling

This commit is contained in:
Dmitriy Shishkov 2021-10-20 00:01:09 +03:00
parent 67b2dcc051
commit 3986fc49ee
No known key found for this signature in database
GPG Key ID: 14358F96FCDD8060

View File

@ -47,7 +47,9 @@ export const TodoItem: React.FC<TodoItemProps> = ({ task, index }) => {
}}
onChange={(e) => change(e.currentTarget.value)}
onBlur={save}
inputProps={{ onKeyDown: (e) => enterHandler(save) }}
inputProps={{
onKeyDown: enterHandler(save),
}}
multiline
/>
) : (