From 447e7adba20df7c0cf10895c15b53254d5759af5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Pet=C5=99=C3=ADk?= Date: Thu, 23 Mar 2023 14:40:58 +0100 Subject: [PATCH] bug(Wizard) close Wizard Modal on Escape/cancel + close buttons --- .../components/Wizard/examples/WizardWithinModal.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/react-core/src/next/components/Wizard/examples/WizardWithinModal.tsx b/packages/react-core/src/next/components/Wizard/examples/WizardWithinModal.tsx index 9d46b9f3a02..6afcce490bb 100644 --- a/packages/react-core/src/next/components/Wizard/examples/WizardWithinModal.tsx +++ b/packages/react-core/src/next/components/Wizard/examples/WizardWithinModal.tsx @@ -14,12 +14,20 @@ export const WizardWithinModal = () => { showClose={false} aria-label="Wizard modal" hasNoBodyWrapper + onEscapePress={() => setIsModalOpen(false)} variant={ModalVariant.medium} > setIsModalOpen(false)} title="In modal wizard" - header={} + header={ + setIsModalOpen(false)} + title="Wizard in modal" + description="Simple wizard description" + /> + } > Step 1 content