aboutsummaryrefslogtreecommitdiff
path: root/js/dist/offcanvas.js
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2023-03-24 16:30:16 +0200
committerGitHub <[email protected]>2023-03-24 16:30:16 +0200
commitc877cefcef18d6a60c5eaec8df469933e64e212a (patch)
tree4e144a567da9b17d5c49640d6fd06e5d2e02190c /js/dist/offcanvas.js
parentf8a56da8b04d8d29a8a8f65d50549206c429a621 (diff)
downloadbootstrap-c877cefcef18d6a60c5eaec8df469933e64e212a.tar.xz
bootstrap-c877cefcef18d6a60c5eaec8df469933e64e212a.zip
Release v5.3.0-alpha2 (#38244)
* Bump version to 5.3.0-alpha2 * Dist
Diffstat (limited to 'js/dist/offcanvas.js')
-rw-r--r--js/dist/offcanvas.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/js/dist/offcanvas.js b/js/dist/offcanvas.js
index b1e12205b..79fb5a51e 100644
--- a/js/dist/offcanvas.js
+++ b/js/dist/offcanvas.js
@@ -1,6 +1,6 @@
/*!
- * Bootstrap offcanvas.js v5.3.0-alpha1 (https://getbootstrap.com/)
- * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
+ * Bootstrap offcanvas.js v5.3.0-alpha2 (https://getbootstrap.com/)
+ * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/
(function (global, factory) {
@@ -11,7 +11,7 @@
/**
* --------------------------------------------------------------------------
- * Bootstrap (v5.3.0-alpha1): offcanvas.js
+ * Bootstrap offcanvas.js
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
* --------------------------------------------------------------------------
*/
@@ -169,11 +169,11 @@
if (event.key !== ESCAPE_KEY) {
return;
}
- if (!this._config.keyboard) {
- EventHandler.trigger(this._element, EVENT_HIDE_PREVENTED);
+ if (this._config.keyboard) {
+ this.hide();
return;
}
- this.hide();
+ EventHandler.trigger(this._element, EVENT_HIDE_PREVENTED);
});
}