don't use e.target incase button has icon or other content inside it
This commit is contained in:
parent
11f72f6aa2
commit
139a077543
3 changed files with 2 additions and 2 deletions
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…
Add table
Add a link
Reference in a new issue