Skip to content

rangePlugin: Desired an option for not re-using existing date for second open #1958

@asudoh

Description

@asudoh

At https://flatpickr.js.org/plugins/#rangeplugin-beta, I see second attempt (meaning, after both start/end dates are set) to open calendar dropdown and selecting a date re-uses one of previously-selected start/end dates. The steps are:

  1. Go to https://flatpickr.js.org/plugins/#rangeplugin-beta
  2. Select "Date 1"
  3. Select September 16th, 2019 - It set as the start date
  4. Select September 20th, 2019 - It set as the end date and calendar dropdown closes
  5. Select "Date 1" again
  6. Select September 23th, 2019

Result: The calendar dropdown closes, and September 23th, 2019 is set as the end date and September 20th, 2019 becomes the start date.

Expected (probably as an optional behavior): September 23th, 2019 is set as the start date, and the calendar dropdown is kept open. User can select e.g. September 27th, 2019 as the end date without re-opening the calendar dropdown.

Your Environment

  • flatpickr version used: 4.6.1
  • Browser name and version: Chrmoe 77
  • OS and version: MacOS 10.14.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions