Lightbox Plus Colorbox
How to set 'returnFocus' property (1 post)

  1. valerio.bulla
    Posted 3 years ago #

    I'm trying to disable the default behaviour that returns focus to the element that called the lightbox. According to changelog (version 2.2.1):

    By default, ColorBox returns focus to the element it was launched from once it closes. This can now be disabled by setting the 'returnFocus' property to false. Focus was causing problems for some users who had their anchor elements inside animated containers.

    How can I set the 'returnFocus' property to false?


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic