Skip to content

The open-source app everyone uses to manage agents at work

Merge pull request #578 from kaonash/fix_ime_composition_enter_in_new_issue_dialog

Dottabfbb42a9fc92
diff --cc ui/src/components/NewIssueDialog.tsx
index 108e282bd3,79adf8888d..e85898a611
--- a/ui/src/components/NewIssueDialog.tsx
+++ b/ui/src/components/NewIssueDialog.tsx
@@@ -697,9 -680,13 +697,14 @@@ export function NewIssueDialog()
e.target.style.height = "auto";
e.target.style.height = `${e.target.scrollHeight}px`;
}}
+ readOnly={createIssue.isPending}
onKeyDown={(e) => {
- if (e.key === "Enter" && !e.metaKey && !e.ctrlKey) {
+ if (
+ e.key === "Enter" &&
+ !e.metaKey &&
+ !e.ctrlKey &&
+ !e.nativeEvent.isComposing
+ ) {
e.preventDefault();
descriptionEditorRef.current?.focus();
}