My custom jQuery UI Accordions looses focus on pages with Colorbox (I am using Jquery Update Module).

Here seems to be the conflict (from the Colorbox FAQ):

Closing ColorBox breaks accordians/tabs/animations

Try setting returnFocus to false. ColorBox returns focus to the element it was launched from upon closing. This is intended to provide better accessibility to users who use their keyboard to navigate through the document's links, but it can cause problems with some JS effects. The problem isn't ColorBox specific and can be reproduced without ColorBox by pressing the TAB key to cycle through the available links.

I tried to change the default settings from returnFocus true to returnFocus false in the plugin itself but it seems to have no effect.
Is there a possibility to change the default setting in the module?

thanks!

Comments

jmix’s picture

i had a similar issue (conflict with another module). Setting returnFocus to false worked for me, but i had to re-minify my colorbox js (by default coorbox module uses the minified version of colorbox library).

ransomweaver’s picture

I had the same issue; returnFocus: false didn't fix, but upgrading to jquery 1.8 did (even with returnFocus: true). Beware of breaking stuff on the admin end (hopefully media module is catching up to this) by upgrading jquery universally (with jquery_update). You might need to alter js in your preprocess functions of your theme.

silurius’s picture

Version: 7.x-1.3 » 7.x-2.4
Priority: Normal » Major

I am having the opposite problem in both Colorbox 7.x-2.4 and 7.x-2.4+4-dev: jQuery UI Accordion breaks Colorbox. Disabling Accordion in Modules re-enables Colorbox. I couldn't find returnFocus anywhere on the Colorbox config page -- where are you recommending changing that setting?

I'm running:

jQuery Update 7.x-2.3 (jQuery 1.8.2 -- also tried 1.5 and 1.7)
jQuery UI filter 7.x-1.0-beta3+7-dev (also tried 7.x-1.0-beta3)
jQuery UI filter accordion 7.x-1.0-beta3+7-dev (also tried 7.x-1.0-beta3)
Colorbox 7.x-2.4 and 7.x-2.4+4-dev
Lightbox2 7.x-1.0-beta1

Not sure if this issue belongs in the jQuery UI filter issues queue?

Edit: jQuery UI filter issue: jQuery UI Accordion conflict with Colorbox and Lightbox2

mgifford’s picture

Issue summary: View changes

Adding link to original issue.

Neslee Canil Pinto’s picture

Issue summary: View changes
Status: Active » Closed (cannot reproduce)