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.

Replace: true doesn't keep attributes that have been set on the element in the compile fn #10465

Open
@j-meyer

Description

@j-meyer

I'm not sure if this is a bug, or if I missed something in the release notes for upgrading to 1.3 .

Using replace:true on a directive with an input element such as a checkbox in Angular 1.2 sets the classes ng-valid and ng-pristine on the parent element.

However, in Angular 1.3.6, only the ng-valid class is being set on the parent element.

Reproducible: always
Browsers: Chrome 39, Firefox 34, and IE 10
Operating system: Windows 7

Plunkers Demonstrating the Difference in Behavior:
Angular 1.3.6 : http://plnkr.co/edit/VES7ZZXfqrpXU4gVwmYs?p=preview
Angular 1.2.9 : http://plnkr.co/edit/DPAfwHjGOfMw3grYiTxf?p=preview

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions