Skip to content

AngularJS's ng-disabled doesn't remove "disabled" attribute when jquery is loaded #4249

Closed
@ghost

Description

I'm submitting a ...

  • bug report
  • feature request
  • other

Current behavior:
ng-disable creates disabled="false"/ng-disabled="true" attributes for elements when jquery was loaded before angularjs. This was observed only for XHTML

Expected / new behavior:
disabled attribute is removed when ng-disabled evaluates to false

Minimal reproduction of the problem with instructions:
http://next.plnkr.co/edit/1GxYGSKho4H0nDAD
(tested in chromium - should be the same behavior in any XHTML aware browser)

AngularJS version: 1.7.5 (or whatever your server currently ships)

Browser: all? (tested in chrome 70.0.3538.110 | Firefox 60.3.0esr)

This was already submitted to angularJS but they say it is the fault of jquery: angular/angular.js#16778

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions