Skip to content

Commit 334ecf3

Browse files
Merge pull request twbs#194 from Linuus/2.1-wip
Fix to make data-methods work in dropdown menu
2 parents 30e4345 + 0e777de commit 334ecf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vendor/assets/javascripts/bootstrap-dropdown.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
$('html')
143143
.on('click.dropdown.data-api touchstart.dropdown.data-api', clearMenus)
144144
$('body')
145-
.on('click.dropdown touchstart.dropdown.data-api', '.dropdown', function (e) { e.stopPropagation() })
145+
.on('click.dropdown touchstart.dropdown.data-api', '.dropdown form', function (e) { e.stopPropagation() })
146146
.on('click.dropdown.data-api touchstart.dropdown.data-api' , toggle, Dropdown.prototype.toggle)
147147
.on('keydown.dropdown.data-api touchstart.dropdown.data-api', toggle + ', [role=menu]' , Dropdown.prototype.keydown)
148148
})

0 commit comments

Comments
 (0)