fetrarij / ngx-daterangepicker-material

Pure Angular 2+ date range picker with material design theme, a demo here:
https://fetrarij.github.io/ngx-daterangepicker-material/
MIT License
247 stars 248 forks source link

Using Ranges Causes "opens" Parameter UI Glitch #385

Open johnson512n28 opened 3 years ago

johnson512n28 commented 3 years ago

Versions

Describe the bug When providing custom date ranges and a value for opens other than 'right,' the picker opens to the right until the user clicks the input field again.

To Reproduce Steps to reproduce the behavior:

  1. Configure component with multiple custom ranges.
  2. Set 'opens' parameter to "left."
  3. Click control to view ranges.
  4. Select "Custom Range."
  5. Observe picker opens to the right instead of left.
  6. Click the input control again.
  7. Observe the picker slides to the left where it should have opened.

Expected behavior The custom date range position should open to the left when clicking "Custom Range" if the 'opens' parameter is set to "left."

Screenshots https://i.gyazo.com/36c4ac67cf3af0bf30f27debc0711747.gif