diff --git a/dialog.js b/dialog.js index a5bf12e..3070757 100644 --- a/dialog.js +++ b/dialog.js @@ -59,7 +59,7 @@ if (!window.HTMLDialogElement) { return this.hasAttribute('open'); }, set(value){ - value ? this.open() : this.close(); + value ? this.show() : this.close(); } })