mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-03-21 23:10:23 +00:00
Merge pull request #14925 from twbs/button-focus-use-regexp
Use RegExp for button plugin's focus shim
This commit is contained in:
commit
4b165332be
1 changed files with 1 additions and 1 deletions
|
|
@ -110,7 +110,7 @@
|
|||
e.preventDefault()
|
||||
})
|
||||
.on('focus.bs.button.data-api blur.bs.button.data-api', '[data-toggle^="button"]', function (e) {
|
||||
$(e.target).closest('.btn').toggleClass('focus', e.type == 'focus')
|
||||
$(e.target).closest('.btn').toggleClass('focus', /^focus(in)?$/.test(e.type))
|
||||
})
|
||||
|
||||
}(jQuery);
|
||||
|
|
|
|||
Loading…
Reference in a new issue