From 2d6b74c2acbcec9889029db4997157952653e4af Mon Sep 17 00:00:00 2001 From: Lee Boynton Date: Mon, 31 Mar 2014 21:01:06 +0100 Subject: [PATCH] Also check if search input should be focussed for multiselects --- select2.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/select2.js b/select2.js index c3a33664..943626b5 100644 --- a/select2.js +++ b/select2.js @@ -2827,7 +2827,9 @@ the specific language governing permissions and limitations under the Apache Lic } this.updateResults(true); - this.search.focus(); + if (this.opts.shouldFocusInput(this)) { + this.search.focus(); + } this.opts.element.trigger($.Event("select2-open")); },