diff --git a/src/components/common/TagInput.jsx b/src/components/common/TagInput.jsx index c40a278f..6430197e 100644 --- a/src/components/common/TagInput.jsx +++ b/src/components/common/TagInput.jsx @@ -60,7 +60,7 @@ useEffect(() => { }; const handleInputKeyDown = (e) => { - if (e.key === "Enter" && input.trim() !== "") { + if ((e.key === "Enter" || e.key === " ")&& input.trim() !== "") { e.preventDefault(); const existing = options.find( (opt) => opt.name.toLowerCase() === input.trim().toLowerCase()