From e20523a8437398b408eff50a043b8d10b5b30e8f Mon Sep 17 00:00:00 2001
From: Coleman Watts <coleman@civicrm.org>
Date: Sat, 1 Feb 2014 21:00:10 -0800
Subject: [PATCH] CRM-13966 - Workaround for ui.dialog & select2 conflict

---
 js/Common.js | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/js/Common.js b/js/Common.js
index 0c0a047c5b..d219d60c55 100644
--- a/js/Common.js
+++ b/js/Common.js
@@ -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)
-- 
GitLab