You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was attempting to use an EuiDatePickerRange within an EuiFlyout and I ran into this when using the end date in Firefox:
The major problem is ultimately caused by me setting the Flyout to maxWidth={0}. In Firefox, it its too narrow for the date picker and when it pops open, the horizontal scroll bar appears, but it does not move. If you click on the scroll bar to scroll to see it, then the popover disappears.
In Chrome / Chromium Edge, it appears to handle this by adding a horizontal scroll bar and automatically scrolling to the right.
Code Example
render(){constnow=moment();return(<EuiFlyoutmaxWidth={0}onClose={()=>{}}ownFocussize='s'><EuiFlyoutHeaderhasBorderaria-labelledby='person-a'><EuiTitlesize='m'><h2id='person-a'>Person A</h2></EuiTitle></EuiFlyoutHeader><EuiFlyoutBody><EuiForm><EuiFormRowlabel='Ranges'><EuiDatePickerRangestartDateControl={<EuiDatePickeraria-label="Start date"minDate={now}onChange={(startDate)=>{}}selected={now}/>}endDateControl={<EuiDatePickeraria-label="End date"minDate={now}onChange={(endDate)=>{}}selected={now}/>}/></EuiFormRow></EuiForm></EuiFlyoutBody><EuiFlyoutFooter><EuiFlexGroupjustifyContent='spaceBetween'><EuiFlexItemgrow={false}><EuiButtonEmptyflush='left'iconType='cross'onClick={()=>{}}>
Cancel
</EuiButtonEmpty></EuiFlexItem><EuiFlexItemgrow={false}><EuiButtonfilliconType='save'onClick={()=>{}}>
Save
</EuiButton></EuiFlexItem></EuiFlexGroup></EuiFlyoutFooter></EuiFlyout>);}
The text was updated successfully, but these errors were encountered:
I was attempting to use an
EuiDatePickerRange
within anEuiFlyout
and I ran into this when using the end date in Firefox:The major problem is ultimately caused by me setting the Flyout to
maxWidth={0}
. In Firefox, it its too narrow for the date picker and when it pops open, the horizontal scroll bar appears, but it does not move. If you click on the scroll bar to scroll to see it, then the popover disappears.In Chrome / Chromium Edge, it appears to handle this by adding a horizontal scroll bar and automatically scrolling to the right.
Code Example
The text was updated successfully, but these errors were encountered: