Skip to content

Commit

Permalink
[duoyun-ui] Fixed <dy-modal> maskClick animation
Browse files Browse the repository at this point in the history
  • Loading branch information
mantou132 committed Dec 11, 2023
1 parent 45bf646 commit d9ae37b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/duoyun-ui/src/elements/modal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,9 @@ export class DuoyunModalElement extends GemElement {
};

#onMaskClick = () => {
if (this.maskClosable) this.#close();
this.maskclick(null);
this.focus();
this.maskclick(null);
if (this.maskClosable) this.#close();
};

#keydown = (evt: KeyboardEvent) => {
Expand Down

0 comments on commit d9ae37b

Please sign in to comment.