Commit 85593de
committed
Fixed bug when destroying Select2
When destroying Select2, an error could be raised while destroying
the selection container. This was because the destroy handler was
relying on the container id being present.
The old functionality has been restored where Select2 will destroy
itself when it is initialized again.1 parent ade7180 commit 85593de
9 files changed
Lines changed: 25 additions & 14 deletions
File tree
- dist/js
- src/js/select2
- selection
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
660 | 660 | | |
661 | 661 | | |
662 | 662 | | |
| 663 | + | |
| 664 | + | |
663 | 665 | | |
664 | 666 | | |
665 | 667 | | |
| |||
716 | 718 | | |
717 | 719 | | |
718 | 720 | | |
719 | | - | |
| 721 | + | |
720 | 722 | | |
721 | 723 | | |
722 | 724 | | |
| |||
3101 | 3103 | | |
3102 | 3104 | | |
3103 | 3105 | | |
3104 | | - | |
| 3106 | + | |
3105 | 3107 | | |
3106 | 3108 | | |
3107 | 3109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
660 | 660 | | |
661 | 661 | | |
662 | 662 | | |
| 663 | + | |
| 664 | + | |
663 | 665 | | |
664 | 666 | | |
665 | 667 | | |
| |||
716 | 718 | | |
717 | 719 | | |
718 | 720 | | |
719 | | - | |
| 721 | + | |
720 | 722 | | |
721 | 723 | | |
722 | 724 | | |
| |||
3101 | 3103 | | |
3102 | 3104 | | |
3103 | 3105 | | |
3104 | | - | |
| 3106 | + | |
3105 | 3107 | | |
3106 | 3108 | | |
3107 | 3109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10195 | 10195 | | |
10196 | 10196 | | |
10197 | 10197 | | |
| 10198 | + | |
| 10199 | + | |
10198 | 10200 | | |
10199 | 10201 | | |
10200 | 10202 | | |
| |||
10251 | 10253 | | |
10252 | 10254 | | |
10253 | 10255 | | |
10254 | | - | |
| 10256 | + | |
10255 | 10257 | | |
10256 | 10258 | | |
10257 | 10259 | | |
| |||
12636 | 12638 | | |
12637 | 12639 | | |
12638 | 12640 | | |
12639 | | - | |
| 12641 | + | |
12640 | 12642 | | |
12641 | 12643 | | |
12642 | 12644 | | |
| |||
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 | |
|---|---|---|---|
| |||
1088 | 1088 | | |
1089 | 1089 | | |
1090 | 1090 | | |
| 1091 | + | |
| 1092 | + | |
1091 | 1093 | | |
1092 | 1094 | | |
1093 | 1095 | | |
| |||
1144 | 1146 | | |
1145 | 1147 | | |
1146 | 1148 | | |
1147 | | - | |
| 1149 | + | |
1148 | 1150 | | |
1149 | 1151 | | |
1150 | 1152 | | |
| |||
3529 | 3531 | | |
3530 | 3532 | | |
3531 | 3533 | | |
3532 | | - | |
| 3534 | + | |
3533 | 3535 | | |
3534 | 3536 | | |
3535 | 3537 | | |
| |||
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 | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
80 | | - | |
| 82 | + | |
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
| |||
0 commit comments