twitter/bootstrap — Issue #2077: removeBackdrop() doesn't get called -- modal.js
Author: lpinca
Created: 2012-02-19 09:45:39+00:00
State: open

I found that if you call the .modal('hide') method and the tab where the modal should appear isn't on focus, the function removeBackdrop() doesn't get called.
This happen on firefox, on chrome everything is fine.

The problem should be on line 148 of modal.js and related to $.proxy(removeBackdrop, this).
Maybe is a jQuery know issue, but i haven't found anything related to tab focus firefox and $.proxy().