Skip to content

Commit 65912ac

Browse files
authored
Update Popover returnFocusOnDeactivate prop (#9865)
Closes #9863
1 parent fc55516 commit 65912ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-core/src/components/Popover/Popover.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ export const Popover: React.FunctionComponent<PopoverProps> = ({
415415
ref={popoverRef}
416416
active={focusTrapActive}
417417
focusTrapOptions={{
418-
returnFocusOnDeactivate: true,
418+
returnFocusOnDeactivate: propWithFocusTrap !== false,
419419
clickOutsideDeactivates: true,
420420
// FocusTrap's initialFocus can accept false as a value to prevent initial focus.
421421
// We want to prevent this in case false is ever passed in.

0 commit comments

Comments
 (0)