The FAQ module is attaching it's initialization function on to the Drupal.behaviors object as is proper. However the context variable that gets passed in to the initialization function doesn't use the context variable that gets passed into it. This means that if Drupal.attachBehaviors() is called to bind js functionality to a new region on the page, all the faq functionality is rebound again. This leads to issues where when you click to expand, the FAQ content expands then immediately collapses.

Attached is a patch for the faq.js function that uses the context variable passed in to prevent the expand/collapse functionality from being bound to the click events more than once.

CommentFileSizeAuthor
faq.js_.patch3.35 KBGekiboy

Comments

stella’s picture

Status: Needs review » Fixed

Fixed, thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

stella’s picture

Released in 6.x-1.12.