diff options
author | Mario Vavti <mario@mariovavti.com> | 2023-04-29 20:17:19 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2023-04-29 20:17:19 +0200 |
commit | fb295d53f12c3376779dc052dc2341c242c631d9 (patch) | |
tree | ff6b3181374955c9affbef343e4a767a9f125700 /vendor/twbs/bootstrap/js/src/offcanvas.js | |
parent | 95d07974f49c8e0123a29c631fa475815cf40cbd (diff) | |
parent | 39d78064da3748ed31f71c9a219433bfe9cd2d56 (diff) | |
download | volse-hubzilla-fb295d53f12c3376779dc052dc2341c242c631d9.tar.gz volse-hubzilla-fb295d53f12c3376779dc052dc2341c242c631d9.tar.bz2 volse-hubzilla-fb295d53f12c3376779dc052dc2341c242c631d9.zip |
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
Diffstat (limited to 'vendor/twbs/bootstrap/js/src/offcanvas.js')
-rw-r--r-- | vendor/twbs/bootstrap/js/src/offcanvas.js | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/vendor/twbs/bootstrap/js/src/offcanvas.js b/vendor/twbs/bootstrap/js/src/offcanvas.js index 54adf86cc..8d1feb13b 100644 --- a/vendor/twbs/bootstrap/js/src/offcanvas.js +++ b/vendor/twbs/bootstrap/js/src/offcanvas.js @@ -1,22 +1,22 @@ /** * -------------------------------------------------------------------------- - * Bootstrap (v5.3.0-alpha1): offcanvas.js + * Bootstrap offcanvas.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) * -------------------------------------------------------------------------- */ +import BaseComponent from './base-component.js' +import EventHandler from './dom/event-handler.js' +import SelectorEngine from './dom/selector-engine.js' +import Backdrop from './util/backdrop.js' +import { enableDismissTrigger } from './util/component-functions.js' +import FocusTrap from './util/focustrap.js' import { defineJQueryPlugin, isDisabled, isVisible } from './util/index.js' import ScrollBarHelper from './util/scrollbar.js' -import EventHandler from './dom/event-handler.js' -import BaseComponent from './base-component.js' -import SelectorEngine from './dom/selector-engine.js' -import Backdrop from './util/backdrop.js' -import FocusTrap from './util/focustrap.js' -import { enableDismissTrigger } from './util/component-functions.js' /** * Constants @@ -198,12 +198,12 @@ class Offcanvas extends BaseComponent { 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) }) } |