Skip to content

Commit

Permalink
Revert "Unselect events: cache lookup key fix (select2#6179)" (select…
Browse files Browse the repository at this point in the history
…2#6217)

This reverts commit d961613.
  • Loading branch information
jayaddison authored and arkonan committed May 19, 2023
1 parent 8093854 commit 01e9875
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/js/select2/data/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,7 @@ define([
});

container.on('unselect', function (params) {
container.$element.find('option').each(function () {
if ($(this).val() == params.data.id) {
var data = Utils.GetData(this, 'data');
self.unselect(data);
}
});
self.unselect(params.data);
});
};

Expand Down

0 comments on commit 01e9875

Please sign in to comment.