Skip to content

Commit

Permalink
fix: autoFocus prop in Dialog component (#6899)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanpajon authored Jul 18, 2024
1 parent 2c5cbb4 commit d1955a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/dialog/Dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ export const Dialog = React.forwardRef((inProps, ref) => {
<div {...maskProps}>
<CSSTransition nodeRef={dialogRef} {...transitionProps}>
<div {...rootProps}>
<FocusTrap autoFocus>{contentElement}</FocusTrap>
<FocusTrap autoFocus={props.focusOnShow}>{contentElement}</FocusTrap>
</div>
</CSSTransition>
</div>
Expand Down

0 comments on commit d1955a3

Please sign in to comment.