diff options
Diffstat (limited to 'js/dist/collapse.js')
-rw-r--r-- | js/dist/collapse.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/js/dist/collapse.js b/js/dist/collapse.js index de1ea2e7bb..0293f24c8b 100644 --- a/js/dist/collapse.js +++ b/js/dist/collapse.js @@ -62,14 +62,14 @@ var Collapse = function () { var Selector = { ACTIVES: '.show, .collapsing', DATA_TOGGLE: '[data-toggle="collapse"]' - }; - /** - * ------------------------------------------------------------------------ - * Class Definition - * ------------------------------------------------------------------------ - */ + /** + * ------------------------------------------------------------------------ + * Class Definition + * ------------------------------------------------------------------------ + */ + }; var Collapse = function () { function Collapse(element, config) { _classCallCheck(this, Collapse); @@ -353,7 +353,7 @@ var Collapse = function () { $(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) { // preventDefault only for <a> elements (which change the URL) not inside the collapsible element - if (event.target.tagName === 'A' && !$.contains(this, event.target)) { + if (event.currentTarget.tagName === 'A') { event.preventDefault(); } |