mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 21:48:58 +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,
|
||||
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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user