mirror of
https://github.com/twbs/bootstrap.git
synced 2025-09-28 22:39:11 +02:00
bind data-api events to document instead of body to allow body replacement
This commit is contained in:
2
js/bootstrap-alert.js
vendored
2
js/bootstrap-alert.js
vendored
@@ -84,7 +84,7 @@
|
||||
* ============== */
|
||||
|
||||
$(function () {
|
||||
$('body').on('click.alert.data-api', dismiss, Alert.prototype.close)
|
||||
$(document).on('click.alert.data-api', dismiss, Alert.prototype.close)
|
||||
})
|
||||
|
||||
}(window.jQuery);
|
Reference in New Issue
Block a user