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.
How to reproduce
* add a ctools collapsible fieldset inside a block
* let it refresh
Result: collapsible not anymore.
(I guess collapsibles depend on some domready js, and this bug also applies to core collapsibles)
Comment | File | Size | Author |
---|---|---|---|
#2 | block_refresh_collapsibles-2350347-2.patch | 431 bytes | tripper54 |
Comments
Comment #1
geek-merlinHmmmm, in BlockRefreshContent(path, element, element_content, panels)
we already have
Drupal.attachBehaviors(this);
but for some reason it does not do its job.
Comment #2
tripper54 CreditAttribution: tripper54 commentedSorry for the long delay on this one :)
Try this patch. attachBehaviors was called with the wrong context.
Comment #3
tripper54 CreditAttribution: tripper54 commentedthe patch at #2508761: attachBehaviors needs to run on whole doc after refresh covers this in a better way.