Fixed task editing input enter handling
This commit is contained in:
parent
67b2dcc051
commit
3986fc49ee
@ -47,7 +47,9 @@ export const TodoItem: React.FC<TodoItemProps> = ({ task, index }) => {
|
|||||||
}}
|
}}
|
||||||
onChange={(e) => change(e.currentTarget.value)}
|
onChange={(e) => change(e.currentTarget.value)}
|
||||||
onBlur={save}
|
onBlur={save}
|
||||||
inputProps={{ onKeyDown: (e) => enterHandler(save) }}
|
inputProps={{
|
||||||
|
onKeyDown: enterHandler(save),
|
||||||
|
}}
|
||||||
multiline
|
multiline
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user