-
Notifications
You must be signed in to change notification settings - Fork 4k
Known Issues
Bootstrap's modals enforce focus for accessibility reasons but that causes problems with LOTS of third-party libraries, including clipboard.js.
https://github.com/select2/select2/issues?q=is%3Aissue+bootstrap+modal+is%3Aclosed https://github.com/zeroclipboard/zeroclipboard/issues?q=is%3Aissue+bootstrap+modal+is%3Aclosed https://github.com/twbs/bootstrap/issues?q=is%3Aissue+enforceFocus+is%3Aclosed
You can turn off this functionality by doing...
Bootstrap 3
$.fn.modal.Constructor.prototype.enforceFocus = function() {};
Bootstrap 4
$.fn.modal.Constructor.prototype._enforceFocus = function() {};
If you want to know exactly what you're overriding, check Bootstrap's source code at: https://github.com/twbs/bootstrap/blob/10606a73bcbfc6c723d60e2a1069c921afff0d2a/js/modal.js#L139-L149
Originally reported at #155
On IE9-11 there's a prompt that asks if the user wants to allow access to his/her clipboard.
If the user allows, everything will work as expected. But if the user denies access, it will still emit the success
event. The root cause of the problem is that document.execCommand
returns true even if it does not have permissions.
Originally reported at #77