Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Drupal.ajax falls short quite significantly for what we need it to do.
In short:
- it doesn't have the ability to *detach*. Hence, if we load an in-place editing form with AJAXy stuff in there and then remove the form, those things will continue to exist in
Drupal.ajax[…]
- it's mostly designed with Form API's
#ajax
property in mind, it seems. We need to use it to load AJAX commands from the server that are specific to the Edit module, but it doesn't support that very well.
In detail: #1533366-3: Simplify and optimize Drupal.ajax() instantiation and implementation.
Comments
Comment #1
Wim LeersThis is now tracked over at #1533366: Simplify and optimize Drupal.ajax() instantiation and implementation, no need to also track it here. I will also link to that issue from the Edit D8 core patch issue summary.