easyui dialog 中select2 搜索框无法输入搜索问题解决

$(".select2Mark").select2({
    //可传配置参数
    placeholder: '全部',
    language: "zh-CN",
});
//弹框中,无法输入搜索条件问题解决
$.ui.dialog.prototype._allowInteraction = function (e) {
    return true;
};

参考:https://stackoverflow.com/questions/16966002/select2-plugin-works-fine-when-not-inside-a-jquery-modal-dialog

猜你喜欢

转载自blog.csdn.net/qq_33888187/article/details/80669027