diff --git a/select2.js b/select2.js index dd9ed6dc..17253033 100644 --- a/select2.js +++ b/select2.js @@ -756,7 +756,7 @@ the specific language governing permissions and limitations under the Apache Lic .removeData("select2") .unbind(".select2") .attr({"tabindex": this.elementTabIndex}) - .prop("autofocus", this.autofocus) + .prop("autofocus", this.autofocus||false) .show(); } },