Commit f2af60c
Gonzalo Ruiz de Villa
fix(input,select): equality comparison is used to detect changes
When model changes are detected, a equality comparison with a local copy
of the value ($modelValue).
ngModelController provides the method $setCompareByEquality to change between
equality and reference comparisons.
Closes angular#17511 parent fc25a44 commit f2af60c
File tree
3 files changed
+26
-4
lines changed- src/ng/directive
- test/ng/directive
3 files changed
+26
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
911 | 911 | | |
912 | 912 | | |
913 | 913 | | |
| 914 | + | |
914 | 915 | | |
915 | 916 | | |
916 | 917 | | |
| |||
948 | 949 | | |
949 | 950 | | |
950 | 951 | | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
951 | 956 | | |
952 | 957 | | |
953 | 958 | | |
| |||
1038 | 1043 | | |
1039 | 1044 | | |
1040 | 1045 | | |
1041 | | - | |
1042 | | - | |
| 1046 | + | |
| 1047 | + | |
1043 | 1048 | | |
1044 | 1049 | | |
1045 | 1050 | | |
| |||
1058 | 1063 | | |
1059 | 1064 | | |
1060 | 1065 | | |
1061 | | - | |
| 1066 | + | |
1062 | 1067 | | |
1063 | 1068 | | |
1064 | 1069 | | |
1065 | 1070 | | |
1066 | | - | |
| 1071 | + | |
1067 | 1072 | | |
1068 | 1073 | | |
1069 | 1074 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
216 | 219 | | |
217 | 220 | | |
218 | 221 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
990 | 990 | | |
991 | 991 | | |
992 | 992 | | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
993 | 1007 | | |
994 | 1008 | | |
995 | 1009 | | |
| |||
0 commit comments