Commit 9d359c9
committed
Update the
This fixes the results display so they prefer the `selected`
property on objects over checking if the `id` matches the value of
the underlying select.
We only ignore the `selected` property if it is null, at that point
we compare against the `id` property.
This closes select2#3163.selected property on objects1 parent a699999 commit 9d359c9
6 files changed
Lines changed: 26 additions & 11 deletions
File tree
- dist/js
- src/js/select2
- data
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
828 | 828 | | |
829 | 829 | | |
830 | 830 | | |
831 | | - | |
| 831 | + | |
| 832 | + | |
832 | 833 | | |
833 | 834 | | |
834 | 835 | | |
| |||
2865 | 2866 | | |
2866 | 2867 | | |
2867 | 2868 | | |
2868 | | - | |
| 2869 | + | |
| 2870 | + | |
| 2871 | + | |
2869 | 2872 | | |
2870 | 2873 | | |
2871 | 2874 | | |
| |||
2907 | 2910 | | |
2908 | 2911 | | |
2909 | 2912 | | |
| 2913 | + | |
| 2914 | + | |
2910 | 2915 | | |
2911 | 2916 | | |
2912 | 2917 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
828 | 828 | | |
829 | 829 | | |
830 | 830 | | |
831 | | - | |
| 831 | + | |
| 832 | + | |
832 | 833 | | |
833 | 834 | | |
834 | 835 | | |
| |||
2865 | 2866 | | |
2866 | 2867 | | |
2867 | 2868 | | |
2868 | | - | |
| 2869 | + | |
| 2870 | + | |
| 2871 | + | |
2869 | 2872 | | |
2870 | 2873 | | |
2871 | 2874 | | |
| |||
2907 | 2910 | | |
2908 | 2911 | | |
2909 | 2912 | | |
| 2913 | + | |
| 2914 | + | |
2910 | 2915 | | |
2911 | 2916 | | |
2912 | 2917 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
| |||
72 | 74 | | |
73 | 75 | | |
74 | 76 | | |
| 77 | + | |
| 78 | + | |
75 | 79 | | |
76 | 80 | | |
77 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
| 113 | + | |
113 | 114 | | |
114 | 115 | | |
115 | 116 | | |
| |||
0 commit comments