Skip to content

Commit 0f34e07

Browse files
author
Hector Arce De Las Heras
committed
Trap focus always on tooltip
1 parent d11731c commit 0f34e07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/tooltip/tooltipStandAlone.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ const TooltipStandAlone = ({
184184
positionVariant={PopoverPositionVariantType.ABSOLUTE}
185185
preventCloseOnClickElements={[props.labelRef?.current]}
186186
role={!props.tooltipAsModal ? ROLES.TOOLTIP : undefined}
187-
trapFocusInsideModal={!props.tooltipAsModal ? false : true}
187+
trapFocusInsideModal={true}
188188
variant={props.styles.popoverVariant?.[props.mediaDevice]}
189189
{...props.popover}
190190
onCloseInternally={props.onPopoverCloseInternally}

0 commit comments

Comments
 (0)