diff --git a/packages/duoyun-ui/src/elements/modal.ts b/packages/duoyun-ui/src/elements/modal.ts index c035bb5e..40b4ebb3 100644 --- a/packages/duoyun-ui/src/elements/modal.ts +++ b/packages/duoyun-ui/src/elements/modal.ts @@ -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) => {