Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docs.md #6160

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion docs/pages/02.troubleshooting/02.common-problems/docs.md
Expand Up @@ -35,8 +35,11 @@ This will cause the dropdown to be attached to the modal, rather than the `<body
**Alternatively**, you may simply globally override Bootstrap's behavior:

```
// Do this before you initialize any of your modals
// Do this before you initialize any of your modals (Bootstrap 3)
$.fn.modal.Constructor.prototype.enforceFocus = function() {};

// Do this before you initialize any of your modals (Bootstrap 4+)
$.fn.modal.Constructor.prototype._enforceFocus = function() {};
```

See [this answer](https://stackoverflow.com/questions/18487056/select2-doesnt-work-when-embedded-in-a-bootstrap-modal/19574076#19574076) for more information.
Expand Down