diff --git a/docs/docs/resources/changelog.md b/docs/docs/resources/changelog.md index c379f0665..7362f08e7 100644 --- a/docs/docs/resources/changelog.md +++ b/docs/docs/resources/changelog.md @@ -21,6 +21,7 @@ During the alpha period, things might break! We take breaking changes very serio - Added more resilient support for lazy loaded options in `` - Added support for vertical button groups - Added the `focus()` method to `` +- Fixed a bug in `` when using `.show()` - Fixed a bug in `` when using `precision` - Fixed a bug in `` that allowed tabbing into the rating when readonly - Fixed a bug in `` where the title attribute would show with redundant info diff --git a/src/components/dialog/dialog.ts b/src/components/dialog/dialog.ts index 7b6584455..97e3d6bad 100644 --- a/src/components/dialog/dialog.ts +++ b/src/components/dialog/dialog.ts @@ -186,7 +186,7 @@ export default class WaDialog extends WebAwesomeElement { // Open or close the dialog if (this.open && !this.dialog.open) { this.show(); - } else if (this.dialog.open) { + } else if (!this.open && this.dialog.open) { this.open = true; this.requestClose(this.dialog); }