This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
chips: ng-change with read-only array-model causes problems #11301
Labels
has: Pull Request
A PR has been created to address this issue
P3: important
Important issues that really should be fixed when possible.
resolution: fixed
severity: regression
This issue is related to a regression
type: bug
Milestone
Comments
Splaktar
added
needs: investigation
The cause of this issue is not well understood and needs to be investigated by the team or community
needs: feedback
The issue creator or community need to respond to questions in this issue
labels
May 30, 2018
@Free-Easy heads up that this appears to be triggered by your changes from #11166. |
3 tasks
@Splaktar when you remove the chip and try to add another one: nothing happens for me anymore. A quick google research did not find some article if it is good or bad. |
This seems to be related to #11304 which I am working on atm. My guess is that fixing that issue will resolve this as well. |
Splaktar
added
type: bug
P3: important
Important issues that really should be fixed when possible.
and removed
needs: feedback
The issue creator or community need to respond to questions in this issue
needs: investigation
The cause of this issue is not well understood and needs to be investigated by the team or community
labels
Jun 1, 2018
3 tasks
PR #11310 posted that should resolve this. |
Splaktar
added a commit
that referenced
this issue
Jun 1, 2018
manually call `ngChange` as it won't be triggered by `ngModel` for chips add `ng-change` test to contact-chips refinements to chips and contact-chips docs remove references to `filter-selected` on contact-chips it was disabled 2 years ago remove use of `angular.lowercase` which is removed in AngularJS 1.7 Fixes #11304. Fixes #11301.
Splaktar
added a commit
that referenced
this issue
Jun 1, 2018
manually call `ngChange` as it won't be triggered by `ngModel` for chips add `ng-change` test to contact-chips refinements to chips and contact-chips docs remove references to `filter-selected` on contact-chips it was disabled 2 years ago remove use of `angular.lowercase` which is removed in AngularJS 1.7 Fixes #11304. Fixes #11301.
Yes, this resolves it. Thanks. |
Splaktar
added a commit
that referenced
this issue
Jun 6, 2018
manually call `ngChange` as it won't be triggered by `ngModel` for chips add `ng-change` test to contact-chips refinements to chips and contact-chips docs remove references to `filter-selected` on contact-chips it was disabled 2 years ago remove use of `angular.lowercase` which is removed in AngularJS 1.7 Fixes #11304. Fixes #11301.
Splaktar
added a commit
that referenced
this issue
Jun 6, 2018
manually call `ngChange` as it won't be triggered by `ngModel` for chips add `ng-change` test to contact-chips refinements to chips and contact-chips docs remove references to `filter-selected` on contact-chips it was disabled 2 years ago remove use of `angular.lowercase` which is removed in AngularJS 1.7 Fixes #11304. Fixes #11301.
jelbourn
pushed a commit
that referenced
this issue
Jun 13, 2018
…11310) manually call `ngChange` as it won't be triggered by `ngModel` for chips add `ng-change` test to contact-chips refinements to chips and contact-chips docs remove references to `filter-selected` on contact-chips it was disabled 2 years ago remove use of `angular.lowercase` which is removed in AngularJS 1.7 Fixes #11304. Fixes #11301.
Splaktar
added a commit
that referenced
this issue
Jul 31, 2018
…11310) manually call `ngChange` as it won't be triggered by `ngModel` for chips add `ng-change` test to contact-chips refinements to chips and contact-chips docs remove references to `filter-selected` on contact-chips it was disabled 2 years ago remove use of `angular.lowercase` which is removed in AngularJS 1.7 Fixes #11304. Fixes #11301.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
has: Pull Request
A PR has been created to address this issue
P3: important
Important issues that really should be fixed when possible.
resolution: fixed
severity: regression
This issue is related to a regression
type: bug
Bug, enhancement request, or proposal:
ng-change introduced new assignment to model-value instead of just adding/removing the elements of the array. Therefore model-values which just have a getter and no setter are not working anymore.
In some cases it is just wanted to have a property with no setter to not touch the reference to the array but let the values be changed.
CodePen and steps to reproduce the issue:
CodePen Demo 1.1.8 where it still works.
CodePen Demo 1.1.9 where it broke.
Detailed Reproduction Steps:
See codepen + look at The codeline which broke the working code.
What is the expected behavior?
Code does still work after updating to 1.1.9.
What is the current behavior?
Completely dies, latets after removing a chip.
What is the use-case or motivation for changing an existing behavior?
Make it work again without changing the application logic because of a material update
Which versions of AngularJS, Material, OS, and browsers are affected?
Is there anything else we should know? Stack Traces, Screenshots, etc.
Introduced with #11237
The text was updated successfully, but these errors were encountered: