1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-15 10:05:40 +02:00
This commit is contained in:
Mark Otto
2017-03-27 22:56:14 -07:00
parent bebdbe4119
commit 7742ba6dc9
14 changed files with 40 additions and 32 deletions

4
js/dist/collapse.js vendored
View File

@@ -338,7 +338,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);