Skip to content

Commit

Permalink
fix: Wrong positioning of filter tooltips on scroll (#24617)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-s-molina committed Jul 7, 2023
1 parent d74d7ec commit c53b249
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ const DescriptionToolTip = ({ description }: { description: string }) => (
WebkitBoxOrient: 'vertical',
textOverflow: 'ellipsis',
}}
getPopupContainer={trigger => trigger.parentElement as HTMLElement}
>
<i
className="fa fa-info-circle text-muted"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,11 @@ export default function DateFilterLabel(props: DateFilterControlProps) {
}
destroyTooltipOnHide
>
<Tooltip placement="top" title={tooltipTitle}>
<Tooltip
placement="top"
title={tooltipTitle}
getPopupContainer={trigger => trigger.parentElement as HTMLElement}
>
<DateLabel
label={actualTimeRange}
isActive={show}
Expand All @@ -379,7 +383,11 @@ export default function DateFilterLabel(props: DateFilterControlProps) {

const modalContent = (
<>
<Tooltip placement="top" title={tooltipTitle}>
<Tooltip
placement="top"
title={tooltipTitle}
getPopupContainer={trigger => trigger.parentElement as HTMLElement}
>
<DateLabel
onClick={toggleOverlay}
label={actualTimeRange}
Expand Down

0 comments on commit c53b249

Please sign in to comment.