Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: tag input state lost issue (#7500)

Yi Xiao9f6aab11d4c3
diff --git a/web/app/components/base/tag-management/selector.tsx b/web/app/components/base/tag-management/selector.tsx
index 74e03570641..fd271a82e81 100644
--- a/web/app/components/base/tag-management/selector.tsx
+++ b/web/app/components/base/tag-management/selector.tsx
@@ -68,6 +68,7 @@ const Panel = (props: PanelProps) => {
...tagList,
newTag,
])
+ setKeywords('')
setCreating(false)
onCreate()
}
@@ -123,11 +124,8 @@ const Panel = (props: PanelProps) => {
handleValueChange()
})
- const onMouseLeave = async () => {
- props.onClose?.()
- }
return (
- <div className='relative w-full bg-white rounded-lg border-[0.5px] border-gray-200' onMouseLeave={onMouseLeave}>
+ <div className='relative w-full bg-white rounded-lg border-[0.5px] border-gray-200'>
<div className='p-2 border-b-[0.5px] border-black/5'>
<SearchInput placeholder={t('common.tag.selectorPlaceholder') || ''} white value={keywords} onChange={handleKeywordsChange} />
</div>