From 335661e432efd50c8aee0f3fa2b00a42cd6c02b7 Mon Sep 17 00:00:00 2001 From: Michael Wiencek Date: Tue, 7 Feb 2023 22:31:27 -0600 Subject: [PATCH] MBS-12870: Trap focus inside the Popover component Sets the Dialog trapFocus prop to true in the Popover component so that tab/shift-tab cycles. --- root/static/scripts/common/components/Popover.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/static/scripts/common/components/Popover.js b/root/static/scripts/common/components/Popover.js index 73bc7a61fdb..58ecde53cd2 100644 --- a/root/static/scripts/common/components/Popover.js +++ b/root/static/scripts/common/components/Popover.js @@ -76,7 +76,7 @@ const Popover = (props: PropsT): React.Portal => { dialogRef={dialogRef} onEscape={closeAndReturnFocus} siblings={
} - trapFocus={false} + trapFocus > {buildChildren(closeAndReturnFocus)} ,