浏览代码

fix: tag input state lost issue (#7500)

tags/0.7.2
Yi Xiao 1年前
父节点
当前提交
9f6aab11d4
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2
    4
      web/app/components/base/tag-management/selector.tsx

+ 2
- 4
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>

正在加载...
取消
保存