v0ltoz / react-datetimepicker

MIT License
91 stars 69 forks source link

Does not open in non-condensed mode #28

Closed malzaeem-sw closed 4 years ago

malzaeem-sw commented 4 years ago

When using this component it shows in condensed mode rather that in full width mode. Can I change that behavior, and can I change it to open to the left.

image

Valeriyspk commented 4 years ago

Came here to open identical issue. Automatic select of side to open (left/right) depending on the component location on the screen seems best option, but, at least optional prop to switch side to left would be very appreciated.

v0ltoz commented 4 years ago

@malzaeem I have introduced noMobileMode as a prop in 1.0.6 which should allow you to permanently set the picker to not condense at the mobile breakpoint.

@Valeriyspk I have added leftMode which when set should allow you to open on the left-hand side instead of the right.

Let me know how you get on with these features as I have done then as BETA at the minute as I wanted your feedback.