Skip to content

Commit

Permalink
Update Popover returnFocusOnDeactivate prop (#9865)
Browse files Browse the repository at this point in the history
Closes #9863
  • Loading branch information
jschuler authored Dec 7, 2023
1 parent fc55516 commit 65912ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-core/src/components/Popover/Popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ export const Popover: React.FunctionComponent<PopoverProps> = ({
ref={popoverRef}
active={focusTrapActive}
focusTrapOptions={{
returnFocusOnDeactivate: true,
returnFocusOnDeactivate: propWithFocusTrap !== false,
clickOutsideDeactivates: true,
// FocusTrap's initialFocus can accept false as a value to prevent initial focus.
// We want to prevent this in case false is ever passed in.
Expand Down

0 comments on commit 65912ac

Please sign in to comment.