mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 00:35:56 +08:00
fix: tag input state lost issue (#7500)
This commit is contained in:
parent
0006c6f0fd
commit
9f6aab11d4
@ -68,6 +68,7 @@ const Panel = (props: PanelProps) => {
|
|||||||
...tagList,
|
...tagList,
|
||||||
newTag,
|
newTag,
|
||||||
])
|
])
|
||||||
|
setKeywords('')
|
||||||
setCreating(false)
|
setCreating(false)
|
||||||
onCreate()
|
onCreate()
|
||||||
}
|
}
|
||||||
@ -123,11 +124,8 @@ const Panel = (props: PanelProps) => {
|
|||||||
handleValueChange()
|
handleValueChange()
|
||||||
})
|
})
|
||||||
|
|
||||||
const onMouseLeave = async () => {
|
|
||||||
props.onClose?.()
|
|
||||||
}
|
|
||||||
return (
|
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'>
|
<div className='p-2 border-b-[0.5px] border-black/5'>
|
||||||
<SearchInput placeholder={t('common.tag.selectorPlaceholder') || ''} white value={keywords} onChange={handleKeywordsChange} />
|
<SearchInput placeholder={t('common.tag.selectorPlaceholder') || ''} white value={keywords} onChange={handleKeywordsChange} />
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user