The option '#collapsible' is not working for fieldsets, which were rendered via AJAX. There is no clickable link for collapsing the fieldset.

CommentFileSizeAuthor
#4 ajax_bug_demos.tgz1.63 KBrfay

Comments

rfay’s picture

@oziris, could you please post code that demonstrates this? A little test module would help.

Thanks!

Nick Lewis’s picture

Category: bug » support

In drupal 6 this was a common symptom of forgetting to call Drupal.AttachBehaviors on the markup returned by ajax. Marking this as a support request until we can get a test module or code example to demonstrate the issue. (ahah seems to work fine in the rest of drupal 7 as far as i can tell...)

Nick Lewis’s picture

(double posted for some reason)

rfay’s picture

Status: Active » Postponed (maintainer needs more info)
StatusFileSize
new1.63 KB

@oziris, I made a sample module and tested this and find no problems, so we'll put this one aside unless you can provide an example of the failure.

My sample module is attached. Use the "AJAX Bugs: Fieldset can't be expanded" menu item. Works fine for me.

rfay’s picture

Assigned: oziris » Unassigned
Category: support » bug
Status: Postponed (maintainer needs more info) » Closed (duplicate)

Actually, I can demonstrate if the fieldset is *added* in the AJAX build (if it's not there the first time around).

That makes this a duplicate of #768128: ajax callbacks can't apply #attached if I'm understanding it correctly. See the demo module posted there in #768128-9: ajax callbacks can't apply #attached