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 (#1513)

ref #1477
  • Loading branch information
QuentinHsu authored Aug 7, 2024
1 parent 5a2f9cf commit 4dcd95d
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 4dcd95d

Please sign in to comment.