1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-23 09:41:11 +00:00

don't use e.target incase button has icon or other content inside it

This commit is contained in:
Jacob Thornton 2012-02-07 21:55:27 -08:00
parent 11f72f6aa2
commit 139a077543
3 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -91,7 +91,7 @@
$(function () { $(function () {
$('body').on('click.button.data-api', '[data-toggle^=button]', function ( e ) { $('body').on('click.button.data-api', '[data-toggle^=button]', function ( e ) {
$(e.target).button('toggle') $(e.currentTarget).button('toggle')
}) })
}) })

View File

@ -91,7 +91,7 @@
$(function () { $(function () {
$('body').on('click.button.data-api', '[data-toggle^=button]', function ( e ) { $('body').on('click.button.data-api', '[data-toggle^=button]', function ( e ) {
$(e.target).button('toggle') $(e.currentTarget).button('toggle')
}) })
}) })