Skip to content

Commit

Permalink
Merge pull request #2795 from xiamiao1121/hotfix/check-select/#2793
Browse files Browse the repository at this point in the history
fix(check-select): 修复onClear设置后没触发(#2793)
  • Loading branch information
solarjoker authored Apr 19, 2024
2 parents f9ba977 + 234687e commit 0acb4e4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/nice-humans-sort.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hi-ui/check-select": patch
---

fix: 修复 onClear 设置后没触发问题
5 changes: 5 additions & 0 deletions .changeset/young-donkeys-kiss.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hi-ui/hiui": patch
---

fix(check-select): 修复 onClear 设置后没触发问题
2 changes: 2 additions & 0 deletions packages/ui/check-select/src/CheckSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export const CheckSelect = forwardRef<HTMLDivElement | null, CheckSelectProps>(
visible,
onOpen,
onClose,
onClear,
// picker
appearance,
invalid,
Expand Down Expand Up @@ -316,6 +317,7 @@ export const CheckSelect = forwardRef<HTMLDivElement | null, CheckSelectProps>(
value={value}
// @ts-ignore
onChange={tryChangeValue}
onClear={onClear}
data={mergedData}
invalid={invalid}
onClick={(evt) => {
Expand Down

0 comments on commit 0acb4e4

Please sign in to comment.