From 6bab3bf68e5f05a65da6703c22f6b31b97cf6856 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 23 May 2022 09:33:16 +0000 Subject: [PATCH] web/elements: fix missing click handler on wizard close button closes #2931 --- web/src/elements/wizard/Wizard.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/web/src/elements/wizard/Wizard.ts b/web/src/elements/wizard/Wizard.ts index e4a8d58f2..13da9c658 100644 --- a/web/src/elements/wizard/Wizard.ts +++ b/web/src/elements/wizard/Wizard.ts @@ -63,6 +63,13 @@ export class Wizard extends ModalButton { class="pf-c-button pf-m-plain pf-c-wizard__close" type="button" aria-label="${t`Close`}" + @click=${() => { + this.open = false; + const firstPage = this.querySelector(`[slot=${this.steps[0]}]`); + if (firstPage) { + this.currentStep = firstPage; + } + }} >