Skip to content

hs-datepicker Date Range Not Working with Angular Reactive Forms / Detect End Date Selection #706

@ShantanuMaske

Description

@ShantanuMaske

Summary

Selecting a start and end date does not update the Reactive Form control.

Steps to Reproduce

When using hs-datepicker with Angular Reactive Forms for selecting a date range, the form control does not update automatically, and valueChanges is not triggered. I also need a way to detect when the end date is selected in order to call a function (e.g., trigger an API call).

Current Behavior

  • Selecting a start and end date does not update the Reactive Form control.
  • valueChanges subscription never fires.
  • onSelect callback works in plain JS, but documentation does not explain how to integrate this with Angular or Reactive Forms.

Expected Behavior

  • Reactive Form should receive the selected date range automatically.
  • Ability to detect when the end date is clicked to trigger further actions.

Additional Context / Suggestion

  • Documentation should include Angular / Reactive Forms integration examples.
  • Explain the difference between type: "multiple" and type: "range".
  • Show how to use onSelect to integrate with Reactive Forms and detect the end date selection.

Demo Link

NA

Expected Behavior

No response

Actual Behavior

No response

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions