@@ -169,6 +169,7 @@ function handleEditKeydown(e: KeyboardEvent, commentId: string) {
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
saveEdit(commentId);
|
saveEdit(commentId);
|
||||||
} else if (e.key === 'Escape') {
|
} else if (e.key === 'Escape') {
|
||||||
|
e.stopPropagation();
|
||||||
cancelEdit();
|
cancelEdit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user