arqex / react-datetime

A lightweight but complete datetime picker react component.
2k stars 870 forks source link

Add position prop #791

Open rohit267 opened 3 years ago

rohit267 commented 3 years ago

Description

Added position prop to show the datepicker above the input feild. It accepts up as value

Motivation and Context

This should be helpful when the input field is at the bottom of the screen. In this case the datepicker is overflowing the sreen without any scroll. This prop solves the proplem.

Checklist

[ *] I have not included any built dist files (us maintainers do that prior to a new release)
[ *] I have added tests covering my changes
[* ] All new and existing tests pass
[* ] My changes required the documentation to be updated
  [ *] I have updated the documentation accordingly
  [ ] I have updated the TypeScript 1.8 type definitions accordingly
  [ ] I have updated the TypeScript 2.0+ type definitions accordingly
rohit267 commented 3 years ago

@arqex please consider this