From 139a07754303e1e53b34a0fca3b9c0a43ee5712b Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Tue, 7 Feb 2012 21:55:27 -0800 Subject: don't use e.target incase button has icon or other content inside it --- js/bootstrap-button.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/bootstrap-button.js') diff --git a/js/bootstrap-button.js b/js/bootstrap-button.js index d85c82947a..a3f4657e8d 100644 --- a/js/bootstrap-button.js +++ b/js/bootstrap-button.js @@ -91,7 +91,7 @@ $(function () { $('body').on('click.button.data-api', '[data-toggle^=button]', function ( e ) { - $(e.target).button('toggle') + $(e.currentTarget).button('toggle') }) }) -- cgit v1.2.3