[Controls] Fix off screen popover (#128983) (#129137)

* Fix off screen popover

(cherry picked from commit d9bf971331)

Co-authored-by: Corey Robertson <corey.robertson@elastic.co>
This commit is contained in:
Devon Thomson 2022-03-31 17:17:46 -04:00 committed by GitHub
parent f26666d4e1
commit 8adb1d5b70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -188,7 +188,7 @@ export const TimeSlider: FC<TimeSliderProps> = (props) => {
panelPaddingSize="s"
anchorPosition="downCenter"
disableFocusTrap
repositionOnScroll
attachToAnchor={false}
>
{isValidRange(range) ? (
<TimeSliderComponentPopover
@ -304,7 +304,7 @@ export const TimeSliderComponentPopover: FC<
<EuiFlexGroup gutterSize="none">
<EuiFlexItem>
<ValidatedDualRange
id={'my-id'}
id={`range${fieldName}`}
max={fullRange[1]}
min={fullRange[0]}
onChange={onChangeHandler}