Tabbing in non-modal forms triggers modal to open
tboyko opened this issue · 1 comments
tboyko commented
Relevant to 2.0-wip branch.
When tabbing through the elements of a non-modal contained form, a modal is created and brought to focus. This appears to be an issue introduced by the recent patch for issue #30.
A potential fix would be to check whether a modal is currently being displayed (or is currently in focus) before running the setTimeout() method. I'm not familiar with the most lightweight way of doing this for this particular implementation.
tboyko commented
Enclosing setTimeout() with the following seems to work, but again, is probably not the lightest-weight method:
if ($('.modal-backdrop').length != 0) {
// setTimeout() call
}