Skip to content

(dateChange)/(timeChange) of <c-date-picker>/<c-time-picker> fired before the formControl is updated #255

Description

@bernik1980

I have a / combination in a Reactive environment.

I want use the (dateChange)/(timeChange) events to update a text, based on the current date/time selection:

(dateChange)="updateText()"
(timeChange)="updateText()"

In updateText() I access the current selected date the following way:
this.form.get('date')!.value

But at this point, the value is the old date, not the newly selected one.

Can this be updated, so that the event is fired after the formControl has been updated?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions