aboutsummaryrefslogtreecommitdiff
path: root/js/dist/modal.js
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2022-07-19 18:43:58 +0300
committerGitHub <[email protected]>2022-07-19 18:43:58 +0300
commitedf9c40956d19e6ab3f9151bfe0dfac6be06fa21 (patch)
treeaa08e0842ee3260dda2a5eddc52d346bdc4c0508 /js/dist/modal.js
parentf451b4161e4e499f5d1b743802302e6b19a5dc4c (diff)
downloadbootstrap-edf9c40956d19e6ab3f9151bfe0dfac6be06fa21.tar.xz
bootstrap-edf9c40956d19e6ab3f9151bfe0dfac6be06fa21.zip
Release v5.2.0 (#36768)
* Bump version to 5.2.0 * Dist * Update masthead.html
Diffstat (limited to 'js/dist/modal.js')
-rw-r--r--js/dist/modal.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/js/dist/modal.js b/js/dist/modal.js
index 7428f81e3..b27d6ab38 100644
--- a/js/dist/modal.js
+++ b/js/dist/modal.js
@@ -1,5 +1,5 @@
/*!
- * Bootstrap modal.js v5.2.0-beta1 (https://getbootstrap.com/)
+ * Bootstrap modal.js v5.2.0 (https://getbootstrap.com/)
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/
@@ -20,7 +20,7 @@
/**
* --------------------------------------------------------------------------
- * Bootstrap (v5.2.0-beta1): modal.js
+ * Bootstrap (v5.2.0): modal.js
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
* --------------------------------------------------------------------------
*/
@@ -39,7 +39,7 @@
const EVENT_SHOW = `show${EVENT_KEY}`;
const EVENT_SHOWN = `shown${EVENT_KEY}`;
const EVENT_RESIZE = `resize${EVENT_KEY}`;
- const EVENT_CLICK_DISMISS = `click.dismiss${EVENT_KEY}`;
+ const EVENT_MOUSEDOWN_DISMISS = `mousedown.dismiss${EVENT_KEY}`;
const EVENT_KEYDOWN_DISMISS = `keydown.dismiss${EVENT_KEY}`;
const EVENT_CLICK_DATA_API = `click${EVENT_KEY}${DATA_API_KEY}`;
const CLASS_NAME_OPEN = 'modal-open';
@@ -52,13 +52,13 @@
const SELECTOR_DATA_TOGGLE = '[data-bs-toggle="modal"]';
const Default = {
backdrop: true,
- keyboard: true,
- focus: true
+ focus: true,
+ keyboard: true
};
const DefaultType = {
backdrop: '(boolean|string)',
- keyboard: 'boolean',
- focus: 'boolean'
+ focus: 'boolean',
+ keyboard: 'boolean'
};
/**
* Class definition
@@ -230,7 +230,7 @@
this._adjustDialog();
}
});
- EventHandler__default.default.on(this._element, EVENT_CLICK_DISMISS, event => {
+ EventHandler__default.default.on(this._element, EVENT_MOUSEDOWN_DISMISS, event => {
if (event.target !== event.currentTarget) {
// click is inside modal-dialog
return;