Skip to content

Commit 858d745

Browse files
committed
fix: Prevent adding task on Enter key during composition
1 parent c812575 commit 858d745

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/pages/TaskList/TaskList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ const TaskList = () => {
224224

225225
// キー入力イベントを処理
226226
const handleNewTaskKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {
227-
if (e.key === "Enter") {
227+
if (e.key === "Enter" && !e.nativeEvent.isComposing) {
228228
handleAddTask();
229229
}
230230
};

0 commit comments

Comments
 (0)