diff --git a/frappe/public/js/frappe/ui/tag_editor.js b/frappe/public/js/frappe/ui/tag_editor.js index 7fb42caa51..391a336820 100644 --- a/frappe/public/js/frappe/ui/tag_editor.js +++ b/frappe/public/js/frappe/ui/tag_editor.js @@ -101,6 +101,13 @@ frappe.ui.TagEditor = class TagEditor { }); $input.on("enter-pressed-in-addtag", function (e) { var value = e.target.value; + // If user typed something, use exactly what they typed + // Don't override with suggestions - let user create new tags + if (value && value.trim()) { + $input.trigger("input-selected"); + return; + } + // Only fetch suggestions if input is empty frappe.call({ method: "frappe.desk.doctype.tag.tag.get_tags", args: {