Skip to content

Commit

Permalink
fix(dialog): during function calls, the close button is not working p…
Browse files Browse the repository at this point in the history
…roperly

ref Tencent#1477
  • Loading branch information
QuentinHsu committed Jul 26, 2024
1 parent 5dba2c0 commit 740df7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dialog/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function create(options: Partial<TdDialogProps> | string): DialogInstance {
},
onClose: (context: DialogCloseContext) => {
callFn('onClose', context);
root.remove();
params.visible = false;
},
onClosed: () => {
callFn('onClosed');
Expand Down

0 comments on commit 740df7d

Please sign in to comment.