Skip to content

Datepicker triggers valueChanges when component inits #2898

Description

@jgomesmv

Issue type

I'm submitting a bug report

Issue description

Current behavior:
When using a nbdatepicker with a reactive form control it triggers valueChanges after component inits

Expected behavior:
The datepicker should only trigger valueChanges when the user changes the input value

Steps to reproduce:

  1. Run the application
  2. Check that on app component the date form control valueChanges observable emits values as soon as the component is init
  3. Check that on app component the form form goup valueChanges observable emits values as soon as the component is init

Related code:

https://github.com/jgomesmv/nebularDatepickerValueChangeIssues

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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