Skip to content

Commit cf01ec6

Browse files
committed
remove shrinking animation on choice remove because it causes jitter. fixes select2#326
1 parent 8bab0b6 commit cf01ec6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

select2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2032,7 +2032,7 @@
20322032
.bind("click dblclick", this.bind(function (e) {
20332033
if (!this.enabled) return;
20342034

2035-
$(e.target).closest(".select2-search-choice").fadeOut('fast').animate({width: "hide"}, 50, this.bind(function(){
2035+
$(e.target).closest(".select2-search-choice").fadeOut('fast', this.bind(function(){
20362036
this.unselect($(e.target));
20372037
this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus");
20382038
this.close();

0 commit comments

Comments
 (0)