Skip to content

Commit 7689c4c

Browse files
authored
Merge pull request #1358 from victoria-dos/fix-wizard-escape
Fix problem with ESC button on wizard in modal
2 parents 6f6306c + c40d45c commit 7689c4c

File tree

1 file changed

+1
-1
lines changed
  • packages/pf4-component-mapper/src/wizard

1 file changed

+1
-1
lines changed

packages/pf4-component-mapper/src/wizard/wizard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,12 @@ const WizardInternal = ({
9090
return (
9191
<Modal inModal={inModal} container={state.container} aria-labelledby={rest.name}>
9292
<div
93+
tabIndex={inModal ? 0 : null}
9394
className={`pf-c-wizard ${inModal ? '' : 'no-shadow'} ddorg__pf4-component-mapper__wizard ${className ? className : ''}`}
9495
role="dialog"
9596
aria-modal={inModal ? 'true' : undefined}
9697
onKeyDown={(e) => {
9798
onKeyDown(e);
98-
9999
if (e.key === 'Escape' && inModal) {
100100
formOptions.onCancel();
101101
}

0 commit comments

Comments
 (0)