We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 057cf7e + e6840fd commit 9e7dde6Copy full SHA for 9e7dde6
1 file changed
select2.js
@@ -1130,7 +1130,7 @@ the specific language governing permissions and limitations under the Apache Lic
1130
1131
// abstract
1132
positionDropdown: function() {
1133
- var $dropdown = this.dropdown,
+ var $dropdown = this.dropdown.hide(),
1134
offset = this.container.offset(),
1135
height = this.container.outerHeight(false),
1136
width = this.container.outerWidth(false),
@@ -1149,6 +1149,8 @@ the specific language governing permissions and limitations under the Apache Lic
1149
css,
1150
resultsListNode;
1151
1152
+ $dropdown.show();
1153
+
1154
if (this.opts.dropdownAutoWidth) {
1155
resultsListNode = $('.select2-results', $dropdown)[0];
1156
$dropdown.addClass('select2-drop-auto-width');
0 commit comments