Please add the setting for returnFocus, as seen in this colorbox faq:

http://www.jacklmoore.com/colorbox/faq/#faq-focus

This solves conflict with existing Jquery code, and also with other CSS hidden objects (ie tabs). This request has been previously made, but since the request was made over 2 years ago I have raised it again.

since some settings have been made available under the custom options selection, it would be easy enough to add this feature.

A full list of settings (for reference) is available here:

http://www.jacklmoore.com/colorbox/

Comments

mtraherne created an issue. See original summary.

mtraherne’s picture

Bounce - 1 month.

DarkteK’s picture

I had searched all across many posts about this problem, I will explain it again in case any of you are having the same issue:

It turns out when I opened some content with .colorbox and close that modal, some of my js scripts didn't work at all, unless I opened the colorbox again and the only answer for this issue was:

Add the parameter 'returnFocus' => FALSE, I couldn't find where to put this line of code, you need to do this:

- First, update your module to the version 7.x-2.12 or ++

- You can add that parameter where you are declaring the colorbox, example:

$(".div").colorbox({inline:true, returnFocus:false});

Thats the only way I found it can work out well

frjo’s picture

Title: Colorbox Conflict » Add the setting for returnFocus
Version: 7.x-2.10 » 7.x-1.x-dev
Priority: Major » Normal
Issue tags: -returnFocus conflictP

  • frjo committed ca17258 on 8.x-1.x
    Issue #2647776: Add the setting for returnFocus
    

  • frjo committed cf1bb1f on 7.x-2.x
    Issue #2647776: Add the setting for returnFocus
    
frjo’s picture

Status: Active » Fixed

Committed to 7.x-2.x and 8.x-1.x.

Status: Fixed » Closed (fixed)

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