select2在jqueryui dialog里没反应

在dialog前加入_allowInteraction的重载.
$.widget("ui.dialog", $.ui.dialog, { open: function () { return this._super(); }, _allowInteraction: function (event) { return !!$(event.target).is(".select2-search__field") || this._super(event); } });

参考 http://www.cnblogs.com/liminjun88/p/3700087.html
posted @ 2016-05-25 15:50  hyfwin  阅读(879)  评论(0编辑  收藏  举报