mirror of
https://github.com/twbs/bootstrap.git
synced 2025-07-31 02:40:26 +02:00
quote attribute value in ^= selector in button.js
This commit is contained in:
@@ -97,7 +97,7 @@
|
||||
// BUTTON DATA-API
|
||||
// ===============
|
||||
|
||||
$(document).on('click.bs.button.data-api', '[data-toggle^=button]', function (e) {
|
||||
$(document).on('click.bs.button.data-api', '[data-toggle^="button"]', function (e) {
|
||||
var $btn = $(e.target)
|
||||
if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn')
|
||||
$btn.button('toggle')
|
||||
|
Reference in New Issue
Block a user