Skip to content

Commit

Permalink
changed FocusStateManager
Browse files Browse the repository at this point in the history
  • Loading branch information
KitoC committed Aug 1, 2024
1 parent 6dbe5bf commit bfa60db
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions lib/components/Popover/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,16 +332,16 @@ export default function Popover({

<FloatingPortal preserveTabOrder={true}>
{text && (
<FloatingFocusManager
initialFocus={context.refs?.reference}
context={context}
modal={false}
<StyledPopoverContainer
className={`Tooltip popover ${visible ? "visible" : ""}`}
ref={refs.setFloating}
style={{ ...floatingStyles, zIndex: 21 }}
{...getFloatingProps()}
>
<StyledPopoverContainer
className={`Tooltip popover ${visible ? "visible" : ""}`}
ref={refs.setFloating}
style={{ ...floatingStyles, zIndex: 21 }}
{...getFloatingProps()}
<FloatingFocusManager
initialFocus={context.refs?.reference}
context={context}
modal={false}
>
<StyledPopover
className={`${directionClass}`}
Expand All @@ -353,8 +353,8 @@ export default function Popover({
>
{text}
</StyledPopover>
</StyledPopoverContainer>
</FloatingFocusManager>
</FloatingFocusManager>
</StyledPopoverContainer>
)}
</FloatingPortal>
</Box>
Expand Down

0 comments on commit bfa60db

Please sign in to comment.