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; + } + }} >