Skip to content

Commit 86a9c79

Browse files
committed
Removed unnecessary animation during unseint multiselect by close button
1 parent 2059b5d commit 86a9c79

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

select2.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2948,13 +2948,11 @@ the specific language governing permissions and limitations under the Apache Lic
29482948
.on("click dblclick", this.bind(function (e) {
29492949
if (!this.isInterfaceEnabled()) return;
29502950

2951-
$(e.target).closest(".select2-search-choice").fadeOut('fast', this.bind(function(){
2952-
this.unselect($(e.target));
2953-
this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus");
2954-
this.close();
2955-
this.focusSearch();
2956-
})).dequeue();
2951+
this.unselect($(e.target));
2952+
this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus");
29572953
killEvent(e);
2954+
this.close();
2955+
this.focusSearch();
29582956
})).on("focus", this.bind(function () {
29592957
if (!this.isInterfaceEnabled()) return;
29602958
this.container.addClass("select2-container-active");

0 commit comments

Comments
 (0)