pramod_Task-#355 #149

Closed
pramod.mahajan wants to merge 17 commits from pramod_Task-#355 into Feature_Directory
Showing only changes of commit 35ca496166 - Show all commits

View File

@ -60,7 +60,7 @@ useEffect(() => {
};
const handleInputKeyDown = (e) => {
if (e.key === "Enter" && input.trim() !== "") {
if ((e.key === "Enter" || e.key === " ") || trimmedInput !== "") {
e.preventDefault();
const existing = options.find(
(opt) => opt.name.toLowerCase() === input.trim().toLowerCase()