easyui dialog 中select2 搜尋框無法輸入搜尋問題解決
阿新 • • 發佈:2019-02-06
$(".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