Skip to content

Commit 7cc88fd

Browse files
authored
fix(Toast): ensure the close callback is reset to the passed-in value or null (#4110)
1 parent 182c9b9 commit 7cc88fd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/components/toast/toast.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export default class Toast extends SuperComponent {
6161
placement: props.placement.value,
6262
preventScrollThrough: props.preventScrollThrough.value,
6363
theme: props.theme.value,
64+
close: null, // 确保 close 回调被重置为当前传入的值或 null
6465
};
6566

6667
const data = {

0 commit comments

Comments
 (0)