Updated schedule post dropdown

Removed portal, added startOpen, added modifiers to prevent overflow.
This commit is contained in:
mgabdev 2019-09-18 21:39:43 -04:00
parent 68c1f28bb1
commit 6fe5cd1f09

View File

@ -50,7 +50,6 @@ class SchedulePostDropdown extends React.PureComponent {
const { open } = this.state;
const datePickerDisabled = !isPro;
const withPortal = isMobile(window.innerWidth);
return (
<div className='schedule-post-dropdown'>
@ -81,7 +80,18 @@ class SchedulePostDropdown extends React.PureComponent {
dateFormat="MMMM d, yyyy h:mm aa"
disabled={datePickerDisabled}
showTimeSelect
withPortal={withPortal}
startOpen
popperModifiers={{
offset: {
enabled: true,
offset: "0px, 5px"
},
preventOverflow: {
enabled: true,
escapeWithReference: false,
boundariesElement: "viewport"
}
}}
/>
}
</div>