Skip to content
Snippets Groups Projects
Commit e20523a8 authored by colemanw's avatar colemanw
Browse files

CRM-13966 - Workaround for ui.dialog & select2 conflict

parent 47f21f3a
Branches
Tags
No related merge requests found
......@@ -261,6 +261,11 @@ CRM.validate = CRM.validate || {
// https://github.com/ivaynberg/select2/pull/2090
$.fn.select2.defaults.width = 'resolve';
// Workaround for https://github.com/ivaynberg/select2/issues/1246
$.ui.dialog.prototype._allowInteraction = function(e) {
return !!$(e.target).closest('.ui-dialog, .ui-datepicker, .select2-drop').length;
};
// Initialize widgets
$(document).on('crmLoad', function(e) {
$('table.row-highlight', e.target)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment