Skip to content

Emit separate events when only start date or only end date is selected in Daterangepicker #6770

@mihirpatel1308

Description

@mihirpatel1308

Is your feature request related to a problem? Please describe.

Currently, the bsDaterangepicker / bs-daterangepicker-inline component emits bsValueChange only when both start and end dates are selected.

This makes it difficult to handle scenarios where we want to react immediately after the start date is chosen (before the end date is picked), or when the end date is changed separately.

Describe the solution you'd like

Introduce two additional outputs (events) from the component:

  1. startDateChange: EventEmitter → emits whenever the start date is selected/changed.
  2. endDateChange: EventEmitter → emits whenever the end date is selected/changed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions