Skip to content

pristine$ not working #57

@Xample

Description

@Xample

Hello, let's consider the following code:

public aController : FormControl<AType> = new FormControl<AType>(null);
public onSetPristine(){ this.aController.markAsPristine();}

then within the html

<input [formControl]="aController">
<button (click)=onSetPristine()>Set pristine</button>
{{aController.pristine$|async}}

Initially, aController.pristine$ is true, when I change the controller it becomes false as expected. But when I mark the controller as pristine (click on "Set pristine") aController.pristine$ stays false. The regular non observable aController.pristine goes however back to true.

In short: aController.pristine$ is broken somewhere. The same applies to dirty$

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions