Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DateRangePicker is not showing correct end date properly if i use singlemonthOnly="true" #3416

Open
Pachiyappan opened this issue Mar 13, 2019 · 0 comments

Comments

@Pachiyappan
Copy link

Pachiyappan commented Mar 13, 2019

Environment

  • Package version(s): 1.23.0
  • Browser and OS versions: Chrome latest, OSX.

Steps to reproduce

  1. open DateRangeInput doc page on http://blueprintjs.com/docs/#datetime/daterangeinput.
  2. disable "Constrain calendar to contiguous months" option and select the "single month only".
  3. Enter dates similar to following: "05/25/2019" -> "08/15/2019" (MM/DD/YYYY format used). You could also use the popover to choose the dates. Open the start Date again, see the date that will be the correct(show this month - 05/25/2019) . Then select the end Date, see the Date, that is also will show the start date only (showing this month - 05/25/2019).

Actual behavior

Start date only showing if i select start and end date on the single month only behaviour.

Expected behavior

When i select end date that should show end month(08/15/2019).

Possible solution

Set "initialMonth" as the DateRangePicker value from the focused input field, if the DateRange value exist otherwise set current month.

@Pachiyappan Pachiyappan changed the title DateRangePicker is not showing correct start and end date properly in i use singlemonthOnly="true" DateRangePicker is not showing correct end date properly in i use singlemonthOnly="true" Mar 13, 2019
@Pachiyappan Pachiyappan changed the title DateRangePicker is not showing correct end date properly in i use singlemonthOnly="true" DateRangePicker is not showing correct end date properly if i use singlemonthOnly="true" Mar 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant