Skip to content

Commit

Permalink
Revert "Unselect events: cache lookup key fix (#6179)" (#6217)
Browse files Browse the repository at this point in the history
This reverts commit d961613.
  • Loading branch information
jayaddison committed Jan 29, 2023
1 parent ab6d7f2 commit 0a186eb
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 0a186eb

Please sign in to comment.