mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-19 16:54:24 +01:00
don't use e.target incase button has icon or other content inside it
This commit is contained in:
parent
11f72f6aa2
commit
139a077543
Binary file not shown.
2
docs/assets/js/bootstrap-button.js
vendored
2
docs/assets/js/bootstrap-button.js
vendored
@ -91,7 +91,7 @@
|
||||
|
||||
$(function () {
|
||||
$('body').on('click.button.data-api', '[data-toggle^=button]', function ( e ) {
|
||||
$(e.target).button('toggle')
|
||||
$(e.currentTarget).button('toggle')
|
||||
})
|
||||
})
|
||||
|
||||
|
2
js/bootstrap-button.js
vendored
2
js/bootstrap-button.js
vendored
@ -91,7 +91,7 @@
|
||||
|
||||
$(function () {
|
||||
$('body').on('click.button.data-api', '[data-toggle^=button]', function ( e ) {
|
||||
$(e.target).button('toggle')
|
||||
$(e.currentTarget).button('toggle')
|
||||
})
|
||||
})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user