Commit 80bda0a
committed
Fixed the
The `selectOnClose` option did not work in production because we
were decorating the `dropdownAdapter` instead of the `resultsAdpater`
when automatically generating the adapters. This has now been fixed,
and the option should work without errors in production.
This also adds documentation for the `selectOnClose` option.
This closes select2#2953.selectOnClose option1 parent 686f846 commit 80bda0a
8 files changed
Lines changed: 65 additions & 52 deletions
File tree
- dist/js
- docs
- src/js/select2
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3650 | 3650 | | |
3651 | 3651 | | |
3652 | 3652 | | |
3653 | | - | |
3654 | | - | |
3655 | | - | |
3656 | | - | |
3657 | | - | |
3658 | | - | |
3659 | | - | |
3660 | 3653 | | |
3661 | 3654 | | |
3662 | 3655 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3650 | 3650 | | |
3651 | 3651 | | |
3652 | 3652 | | |
3653 | | - | |
3654 | | - | |
3655 | | - | |
3656 | | - | |
3657 | | - | |
3658 | | - | |
3659 | | - | |
3660 | 3653 | | |
3661 | 3654 | | |
3662 | 3655 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4088 | 4088 | | |
4089 | 4089 | | |
4090 | 4090 | | |
4091 | | - | |
4092 | | - | |
4093 | | - | |
4094 | | - | |
4095 | | - | |
4096 | | - | |
4097 | | - | |
4098 | 4091 | | |
4099 | 4092 | | |
4100 | 4093 | | |
| |||
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 | |
|---|---|---|---|
| |||
4088 | 4088 | | |
4089 | 4089 | | |
4090 | 4090 | | |
4091 | | - | |
4092 | | - | |
4093 | | - | |
4094 | | - | |
4095 | | - | |
4096 | | - | |
4097 | | - | |
4098 | 4091 | | |
4099 | 4092 | | |
4100 | 4093 | | |
| |||
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 | |
|---|---|---|---|
| |||
688 | 688 | | |
689 | 689 | | |
690 | 690 | | |
691 | | - | |
692 | | - | |
693 | | - | |
694 | | - | |
695 | | - | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
696 | 698 | | |
697 | | - | |
698 | | - | |
699 | | - | |
700 | | - | |
701 | | - | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
702 | 714 | | |
703 | 715 | | |
704 | 716 | | |
| |||
734 | 746 | | |
735 | 747 | | |
736 | 748 | | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
737 | 773 | | |
738 | 774 | | |
739 | 775 | | |
| |||
1053 | 1089 | | |
1054 | 1090 | | |
1055 | 1091 | | |
1056 | | - | |
1057 | | - | |
1058 | | - | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
1059 | 1096 | | |
1060 | 1097 | | |
1061 | 1098 | | |
| |||
1064 | 1101 | | |
1065 | 1102 | | |
1066 | 1103 | | |
1067 | | - | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
1068 | 1107 | | |
1069 | 1108 | | |
1070 | 1109 | | |
| |||
1111 | 1150 | | |
1112 | 1151 | | |
1113 | 1152 | | |
1114 | | - | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
1115 | 1156 | | |
1116 | 1157 | | |
1117 | 1158 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
131 | 138 | | |
132 | 139 | | |
133 | 140 | | |
| |||
146 | 153 | | |
147 | 154 | | |
148 | 155 | | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| |||
0 commit comments