1
0
mirror of synced 2025-02-04 14:19:23 +03:00

Fixed undefined this.autofocus on destroy while creating on element that already have select2 applied

This commit is contained in:
Foxel 2013-05-09 10:36:46 +07:00
parent 5762b85dd2
commit a957ed81fd

View File

@ -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();
}
},