mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-20 20:00:36 +03:00
don't use e.target incase button has icon or other content inside it
This commit is contained in:
Binary file not shown.
Vendored
+1
-1
@@ -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')
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Vendored
+1
-1
@@ -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')
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user