Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

FormController.$setPristine() doesn't clear $submitted #10006

@supersonicclay

Description

@supersonicclay

It appears that calling $setPristine() on a FormController does not clear the $submitted property and the ng-submitted class on the form tag.

Here's a plunker demo:
http://embed.plnkr.co/apNkX3/preview

And the problematic code:
https://github.com/angular/angular.js/blob/master/src/ng/directive/form.js#L241

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions