Updated schedule post dropdown
Removed portal, added startOpen, added modifiers to prevent overflow.
This commit is contained in:
parent
68c1f28bb1
commit
6fe5cd1f09
@ -50,7 +50,6 @@ class SchedulePostDropdown extends React.PureComponent {
|
|||||||
const { open } = this.state;
|
const { open } = this.state;
|
||||||
|
|
||||||
const datePickerDisabled = !isPro;
|
const datePickerDisabled = !isPro;
|
||||||
const withPortal = isMobile(window.innerWidth);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='schedule-post-dropdown'>
|
<div className='schedule-post-dropdown'>
|
||||||
@ -81,7 +80,18 @@ class SchedulePostDropdown extends React.PureComponent {
|
|||||||
dateFormat="MMMM d, yyyy h:mm aa"
|
dateFormat="MMMM d, yyyy h:mm aa"
|
||||||
disabled={datePickerDisabled}
|
disabled={datePickerDisabled}
|
||||||
showTimeSelect
|
showTimeSelect
|
||||||
withPortal={withPortal}
|
startOpen
|
||||||
|
popperModifiers={{
|
||||||
|
offset: {
|
||||||
|
enabled: true,
|
||||||
|
offset: "0px, 5px"
|
||||||
|
},
|
||||||
|
preventOverflow: {
|
||||||
|
enabled: true,
|
||||||
|
escapeWithReference: false,
|
||||||
|
boundariesElement: "viewport"
|
||||||
|
}
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user