mirror of
https://github.com/twbs/bootstrap.git
synced 2025-09-26 21:39:08 +02:00
bind data-api events to document instead of body to allow body replacement
This commit is contained in:
2
js/bootstrap-tab.js
vendored
2
js/bootstrap-tab.js
vendored
@@ -126,7 +126,7 @@
|
||||
* ============ */
|
||||
|
||||
$(function () {
|
||||
$('body').on('click.tab.data-api', '[data-toggle="tab"], [data-toggle="pill"]', function (e) {
|
||||
$(document).on('click.tab.data-api', '[data-toggle="tab"], [data-toggle="pill"]', function (e) {
|
||||
e.preventDefault()
|
||||
$(this).tab('show')
|
||||
})
|
||||
|
Reference in New Issue
Block a user