Skip to content

Commit ebff19f

Browse files
committed
fix(Toast): ensure the close callback is reset to the passed-in value or null
1 parent 53fd50b commit ebff19f

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)