diff options
| author | Mark Otto <[email protected]> | 2020-06-13 15:40:28 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2020-06-14 13:52:54 -0700 |
| commit | a6564588567a14ebc4bfa4e50358f1c32e3b10d7 (patch) | |
| tree | 37b84533c45e6286d75918c9d0221895ec659ce2 /dist/js/bootstrap.esm.js | |
| parent | cde53a85d14d22b3eba6f96b7e01490848da047e (diff) | |
| download | bootstrap-a6564588567a14ebc4bfa4e50358f1c32e3b10d7.tar.xz bootstrap-a6564588567a14ebc4bfa4e50358f1c32e3b10d7.zip | |
Run dist on latest
Diffstat (limited to 'dist/js/bootstrap.esm.js')
| -rw-r--r-- | dist/js/bootstrap.esm.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/dist/js/bootstrap.esm.js b/dist/js/bootstrap.esm.js index e92d101dc..b878149a6 100644 --- a/dist/js/bootstrap.esm.js +++ b/dist/js/bootstrap.esm.js @@ -102,7 +102,7 @@ var toType = function toType(obj) { var getUID = function getUID(prefix) { do { - prefix += ~~(Math.random() * MAX_UID); // "~~" acts like a faster Math.floor() here + prefix += Math.floor(Math.random() * MAX_UID); } while (document.getElementById(prefix)); return prefix; @@ -2888,6 +2888,8 @@ var Modal = /*#__PURE__*/function () { this._element.setAttribute('aria-modal', true); + this._element.setAttribute('role', 'dialog'); + this._element.scrollTop = 0; if (modalBody) { @@ -2975,6 +2977,8 @@ var Modal = /*#__PURE__*/function () { this._element.removeAttribute('aria-modal'); + this._element.removeAttribute('role'); + this._isTransitioning = false; this._showBackdrop(function () { @@ -3305,7 +3309,7 @@ var allowedAttribute = function allowedAttribute(attr, allowedAttributeList) { if (allowedAttributeList.indexOf(attrName) !== -1) { if (uriAttrs.indexOf(attrName) !== -1) { - return SAFE_URL_PATTERN.test(attr.nodeValue) || DATA_URL_PATTERN.test(attr.nodeValue); + return Boolean(attr.nodeValue.match(SAFE_URL_PATTERN) || attr.nodeValue.match(DATA_URL_PATTERN)); } return true; @@ -3316,7 +3320,7 @@ var allowedAttribute = function allowedAttribute(attr, allowedAttributeList) { }); // Check if a regular expression validates the attribute. for (var i = 0, len = regExp.length; i < len; i++) { - if (regExp[i].test(attrName)) { + if (attrName.match(regExp[i])) { return true; } } |
