1
0
mirror of synced 2025-02-16 20:13:16 +03:00

Fixed backspace on multiple selects

This commit is contained in:
Kevin Brown 2014-12-11 18:10:46 -05:00
parent 3ff78d8145
commit 096d55b64d
7 changed files with 12 additions and 12 deletions

View File

@ -1119,7 +1119,7 @@ define('select2/selection/search',[
this.resizeSearch();
};
Search.prototype.handleSearch = function (evt) {
Search.prototype.handleSearch = function () {
this.resizeSearch();
if (!this._keyUpPrevented) {
@ -1133,7 +1133,7 @@ define('select2/selection/search',[
this._keyUpPrevented = false;
};
Search.prototype.searchRemoveChoice = function (item) {
Search.prototype.searchRemoveChoice = function (decorated, item) {
this.trigger('unselected', {
data: item
});

View File

@ -1119,7 +1119,7 @@ define('select2/selection/search',[
this.resizeSearch();
};
Search.prototype.handleSearch = function (evt) {
Search.prototype.handleSearch = function () {
this.resizeSearch();
if (!this._keyUpPrevented) {
@ -1133,7 +1133,7 @@ define('select2/selection/search',[
this._keyUpPrevented = false;
};
Search.prototype.searchRemoveChoice = function (item) {
Search.prototype.searchRemoveChoice = function (decorated, item) {
this.trigger('unselected', {
data: item
});

View File

@ -10654,7 +10654,7 @@ define('select2/selection/search',[
this.resizeSearch();
};
Search.prototype.handleSearch = function (evt) {
Search.prototype.handleSearch = function () {
this.resizeSearch();
if (!this._keyUpPrevented) {
@ -10668,7 +10668,7 @@ define('select2/selection/search',[
this._keyUpPrevented = false;
};
Search.prototype.searchRemoveChoice = function (item) {
Search.prototype.searchRemoveChoice = function (decorated, item) {
this.trigger('unselected', {
data: item
});

File diff suppressed because one or more lines are too long

4
dist/js/select2.js vendored
View File

@ -1547,7 +1547,7 @@ define('select2/selection/search',[
this.resizeSearch();
};
Search.prototype.handleSearch = function (evt) {
Search.prototype.handleSearch = function () {
this.resizeSearch();
if (!this._keyUpPrevented) {
@ -1561,7 +1561,7 @@ define('select2/selection/search',[
this._keyUpPrevented = false;
};
Search.prototype.searchRemoveChoice = function (item) {
Search.prototype.searchRemoveChoice = function (decorated, item) {
this.trigger('unselected', {
data: item
});

File diff suppressed because one or more lines are too long

View File

@ -80,7 +80,7 @@ define([
this.resizeSearch();
};
Search.prototype.handleSearch = function (evt) {
Search.prototype.handleSearch = function () {
this.resizeSearch();
if (!this._keyUpPrevented) {
@ -94,7 +94,7 @@ define([
this._keyUpPrevented = false;
};
Search.prototype.searchRemoveChoice = function (item) {
Search.prototype.searchRemoveChoice = function (decorated, item) {
this.trigger('unselected', {
data: item
});