Skip to content

[Feature request] Range picker should emit event on first selected date #429

Closed
@colq2

Description

@colq2

What problem does this feature solve?

It is not possible to listen to the select event which is emitted by CalendarPanel in CalendarRange. It would be awesome to get this possibility.

Use case

For example we have a range picker, but it is possible to have a same-day range. A UX would be if the user could only pick once and we can add a computed property for the end date. Which would be by default the same date as the start date.

What does the proposed API look like?

  1. Approach
    Also emit the input event on the first date pick with [start_date, null]

  2. Approach
    Emit the select event delegated from CalendarPanel to DatePicker

Thank you for your great work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions