Skip to content

Commit d4e6a29

Browse files
committed
Disallow commas in the run tag input field
1 parent a1c055b commit d4e6a29

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/webapp/app/components/runs/v3/RunTagInput.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ export function RunTagInput({
6868
addTag(inputValue);
6969
} else if (e.key === "Backspace" && inputValue === "" && tags.length > 0) {
7070
removeTag(tags[tags.length - 1]);
71+
} else if (e.key === ",") {
72+
e.preventDefault();
7173
}
7274
},
7375
[inputValue, addTag, removeTag, tags]

0 commit comments

Comments
 (0)