InlineTextArea: stop event propagation on 'esc'

This commit is contained in:
Enrico Ros
2025-07-06 17:55:37 -07:00
parent d92739c793
commit 6989a807d6
+1
View File
@@ -47,6 +47,7 @@ export function InlineTextarea(props: {
}
} else if (e.key === 'Escape') {
e.preventDefault();
e.stopPropagation();
props.onCancel?.();
}
};