Compare commits

...

4 Commits

Author SHA1 Message Date
Yi
7f548c3309 Merge branch 'main' into fix/tag-input-state-lost-issue 2024-08-21 17:11:20 +08:00
Yi
546ab0976e fix: tag input value is not cleared after creation 2024-08-21 17:07:16 +08:00
Yi
a0ec925757 Merge branch 'main' into fix/tag-input-state-lost-issue 2024-08-21 16:34:36 +08:00
Yi
55b7692db0 fix: tag input state lost issue 2024-08-21 16:33:25 +08:00

View File

@@ -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>