diff --git a/js/modal.js b/js/modal.js
index 831649f..54e3a94 100644
--- a/js/modal.js
+++ b/js/modal.js
@@ -278,6 +278,10 @@
       Drupal.CTools.Modal.show(Drupal.CTools.Modal.getSettings(ajax.element));
     }
     $('#modal-title').html(response.title);
+
+    // Allow for relevant parties to detach before we update the modal-content.
+    Drupal.detachBehaviors($('#modal-content'), Drupal.settings, "unload");
+
     // Simulate an actual page load by scrolling to the top after adding the
     // content. This is helpful for allowing users to see error messages at the
     // top of a form, etc.
