From e74de511847e36dca98c5e83893059eea3bb5467 Mon Sep 17 00:00:00 2001 From: buddha87 Date: Fri, 28 Oct 2016 11:08:26 +0200 Subject: [PATCH] Added select2 search input field support within bootstrap modals. --- js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/app.js b/js/app.js index f669dd2804..dbc92d2f12 100644 --- a/js/app.js +++ b/js/app.js @@ -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; }