diff options
| author | XhmikosR <[email protected]> | 2020-03-09 15:37:46 +0200 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2020-03-18 20:59:27 +0200 |
| commit | 018a94c9c1766c2f191d98f14d8a780882d671ae (patch) | |
| tree | c4cc4e590358ec01b4b090fe35cbf515865e9d05 /site/content/docs/4.3/getting-started/javascript.md | |
| parent | 47aef7b2c6f4570443a16f8db302586a7ce548af (diff) | |
| download | bootstrap-018a94c9c1766c2f191d98f14d8a780882d671ae.tar.xz bootstrap-018a94c9c1766c2f191d98f14d8a780882d671ae.zip | |
Remove Internet Explorer leftovers
Diffstat (limited to 'site/content/docs/4.3/getting-started/javascript.md')
| -rw-r--r-- | site/content/docs/4.3/getting-started/javascript.md | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/site/content/docs/4.3/getting-started/javascript.md b/site/content/docs/4.3/getting-started/javascript.md index f02ea5bc7..3c5eecf36 100644 --- a/site/content/docs/4.3/getting-started/javascript.md +++ b/site/content/docs/4.3/getting-started/javascript.md @@ -227,40 +227,3 @@ var tooltip = new bootstrap.Tooltip(yourTooltipEl, { } }) {{< /highlight >}} - -## Compatibility with IE 11 - -Bootstrap v5 isn't designed to work with Internet Explorer 11, but you can add the following polyfills to make it work: - -{{< highlight html >}} -<!-- Polyfill.io will load polyfills your browser needs --> -<script crossorigin="anonymous" src="https://polyfill.io/v3/polyfill.min.js"></script> -<script> - // Fix preventDefault for IE - (function () { - var workingDefaultPrevented = (function () { - var e = document.createEvent('CustomEvent') - e.initEvent('Bootstrap', true, true) - e.preventDefault() - return e.defaultPrevented - })() - - if (!workingDefaultPrevented) { - var origPreventDefault = Event.prototype.preventDefault - Event.prototype.preventDefault = function () { - if (!this.cancelable) { - return - } - - origPreventDefault.call(this) - Object.defineProperty(this, 'defaultPrevented', { - get: function () { - return true - }, - configurable: true - }) - } - } - })() -</script> -{{< /highlight >}} |
