Skip to content

Instantly share code, notes, and snippets.

@dorian-davis
Last active July 16, 2016 05:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dorian-davis/429e05b1d5876c974f918daec88811a0 to your computer and use it in GitHub Desktop.
Save dorian-davis/429e05b1d5876c974f918daec88811a0 to your computer and use it in GitHub Desktop.
Interact with Intercom even when bootstrap modal is in focus
$('#myModal').on('shown', function() {
$(document).off('focusin.bs.modal');
});
@gilberto-torrezan
Copy link

gilberto-torrezan commented Jul 16, 2016

Tested with Bootstrap 3. The use case is the following:

I have an application using Bootstrap, and in some pages we show input forms by using Bootstrap Modals (http://getbootstrap.com/javascript/#modals)

The problem is: when a modal is opened, the user can't interact with the intercom chat window: the type events are blocked.

The user doesn't interact with anything of the app when the modal is opened... except by the fact that the user may have a question he want to ask at the intercom chat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment