Last active
April 10, 2021 00:20
-
-
Save paulsheldrake/c1cdbad1109a57b65298e560cbfa2dd5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/ajax_links_api.js b/ajax_links_api.js | |
index 457d681..6dd4738 100644 | |
--- a/ajax_links_api.js | |
+++ b/ajax_links_api.js | |
@@ -152,5 +152,8 @@ | |
formAction = formAction.replace('?ajax=1', ''); | |
$('form').attr('action', formAction); | |
} | |
+ | |
+ // Re-add listeners. | |
+ Drupal.attachBehaviors(); | |
} | |
})(jQuery); | |
diff --git a/ajax_links_api.libraries.yml b/ajax_links_api.libraries.yml | |
index 5a453c9..a7a8f54 100644 | |
--- a/ajax_links_api.libraries.yml | |
+++ b/ajax_links_api.libraries.yml | |
@@ -9,3 +9,4 @@ ajax_links_api: | |
- core/jquery | |
- core/drupal | |
- core/drupalSettings | |
+ - core/drupal.ajax |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment