I Googled this and found out that default Bootstrap behaviour should be: clicking outside closes modal.

As an example see this stackoverflow question on how to prevent it.

BUT on Drupal Bootstrap the opposite is happening. Where is this setting overridden? What can I do to have the default behaviour, i.e. close the modal when clicking outside of it?

Comments

kopeboy created an issue. See original summary.

markhalliwell’s picture

Status: Active » Closed (cannot reproduce)

The 7.x-3.x branch does not implement any modal settings whatsoever, so it cannot be this project that is responsible for this behavior.

The "Javascript > Modal" settings were introduced in 8.x-3.x and modal_backdrop is already set to 'true' which allows the backdrop to be clicked.

It's the 'static" value that shows the backdrop, but prevents it from closing the modal when clicked.

http://getbootstrap.com/javascript/#modals-options
http://drupal-bootstrap.org/api/bootstrap/docs%21Theme-Settings.md/group...