Commit 6fe5cd1f authored by mgabdev's avatar mgabdev

Updated schedule post dropdown

Removed portal, added startOpen, added modifiers to prevent overflow.
parent 68c1f28b
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment