Skip to content

Commit

Permalink
fix: input 组件点击清除图标无法清空内容 (#1292)
Browse files Browse the repository at this point in the history
  • Loading branch information
oasis-cloud authored Aug 8, 2023
1 parent b5e673b commit 9a3d339
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/packages/input/input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ export const Input = forwardRef(
const handleBlur = (event: Event) => {
const val: any = (event.target as any).value
updateValue(val, 'onBlur')
setActive(false)
setTimeout(() => {
setActive(false)
}, 200)
}

const inputType = (type: string) => {
Expand Down

0 comments on commit 9a3d339

Please sign in to comment.