Skip to content

MatDateRangePicker reactive form reset emits changes #24711

@zehavibarak

Description

@zehavibarak

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

Reseting a reactive form with emitEvent: false, triggers valueChanges observable if a date range exists for the form.

Reproduction

Form 1 is simple Reset with emit event false, no events
Form 2 with date-range rest - yield two events

repro

Expected Behavior

Do not trigger valueChanges.

Actual Behavior

Trigger events.

Environment

  • Angular:
  • CDK/Material:
  • Browser(s):
  • Operating System (e.g. Windows, macOS, Ubuntu):

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/datepicker

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions