diff options
author | Mark Otto <markdotto@gmail.com> | 2017-03-28 08:56:14 +0300 |
---|---|---|
committer | Mark Otto <markdotto@gmail.com> | 2017-03-28 08:56:14 +0300 |
commit | 7742ba6dc9ed7c630b9786667df0a90eb9ae3948 (patch) | |
tree | 0b041218596f3860a507abd3d9720d63e59cffa5 /dist/js/bootstrap.js | |
parent | bebdbe411971206e83b52b2448664acfdb73a174 (diff) |
grunt
Diffstat (limited to 'dist/js/bootstrap.js')
-rw-r--r-- | dist/js/bootstrap.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dist/js/bootstrap.js b/dist/js/bootstrap.js index 0bdca5ef8d..550c9d6749 100644 --- a/dist/js/bootstrap.js +++ b/dist/js/bootstrap.js @@ -1344,7 +1344,9 @@ var Collapse = function ($) { */ $(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) { - event.preventDefault(); + if (/input|textarea/i.test(event.target.tagName)) { + event.preventDefault(); + } var target = Collapse._getTargetFromElement(this); var data = $(target).data(DATA_KEY); |