Prevent IE from going back on backspace
This closes https://github.com/select2/select2/issues/3168.
This commit is contained in:
parent
14279a012b
commit
0c573df402
2
dist/js/select2.full.js
vendored
2
dist/js/select2.full.js
vendored
@ -1786,6 +1786,8 @@ S2.define('select2/selection/search',[
|
|||||||
var item = $previousChoice.data('data');
|
var item = $previousChoice.data('data');
|
||||||
|
|
||||||
self.searchRemoveChoice(item);
|
self.searchRemoveChoice(item);
|
||||||
|
|
||||||
|
evt.preventDefault();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
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
2
dist/js/select2.js
vendored
2
dist/js/select2.js
vendored
@ -1786,6 +1786,8 @@ S2.define('select2/selection/search',[
|
|||||||
var item = $previousChoice.data('data');
|
var item = $previousChoice.data('data');
|
||||||
|
|
||||||
self.searchRemoveChoice(item);
|
self.searchRemoveChoice(item);
|
||||||
|
|
||||||
|
evt.preventDefault();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
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
2
src/js/select2/selection/search.js
vendored
2
src/js/select2/selection/search.js
vendored
@ -75,6 +75,8 @@ define([
|
|||||||
var item = $previousChoice.data('data');
|
var item = $previousChoice.data('data');
|
||||||
|
|
||||||
self.searchRemoveChoice(item);
|
self.searchRemoveChoice(item);
|
||||||
|
|
||||||
|
evt.preventDefault();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user