Fixed backspace on multiple selects
This commit is contained in:
parent
3ff78d8145
commit
096d55b64d
7 changed files with 12 additions and 12 deletions
4
dist/js/select2.amd.full.js
vendored
4
dist/js/select2.amd.full.js
vendored
|
@ -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
|
||||
});
|
||||
|
|
4
dist/js/select2.amd.js
vendored
4
dist/js/select2.amd.js
vendored
|
@ -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
|
||||
});
|
||||
|
|
4
dist/js/select2.full.js
vendored
4
dist/js/select2.full.js
vendored
|
@ -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
|
||||
});
|
||||
|
|
2
dist/js/select2.full.min.js
vendored
2
dist/js/select2.full.min.js
vendored
File diff suppressed because one or more lines are too long
4
dist/js/select2.js
vendored
4
dist/js/select2.js
vendored
|
@ -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
|
||||
});
|
||||
|
|
2
dist/js/select2.min.js
vendored
2
dist/js/select2.min.js
vendored
File diff suppressed because one or more lines are too long
4
src/js/select2/selection/search.js
vendored
4
src/js/select2/selection/search.js
vendored
|
@ -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
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue