aboutsummaryrefslogtreecommitdiff
path: root/js/dist/offcanvas.js
diff options
context:
space:
mode:
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);
});
}