Added select2 search input field support within bootstrap modals.

This commit is contained in:
buddha87 2016-10-28 11:08:26 +02:00
parent d89c16a377
commit e74de51184

View File

@ -128,7 +128,7 @@ function HashTable(obj) {
$.fn.modal.Constructor.prototype.enforceFocus = function () {
var that = this;
$(document).on('focusin.modal', function (e) {
if ($(e.target).hasClass('select2-input') || $(e.target).hasClass('hexInput')) {
if ($(e.target).hasClass('select2-input') || $(e.target).hasClass('select2-search__field') || $(e.target).hasClass('hexInput') ) {
return true;
}