diff options
| author | fat <[email protected]> | 2013-12-24 17:00:34 -0800 |
|---|---|---|
| committer | fat <[email protected]> | 2013-12-24 17:00:34 -0800 |
| commit | 394e0fa6118febbe62ecfb431ab91fff42bdf7d8 (patch) | |
| tree | bf3cb981e66922006ddbc51b0d20170f8f6f8b17 /js | |
| parent | d9266aee969b2ad57851fffd77409a997ee157d1 (diff) | |
| download | bootstrap-394e0fa6118febbe62ecfb431ab91fff42bdf7d8.tar.xz bootstrap-394e0fa6118febbe62ecfb431ab91fff42bdf7d8.zip | |
fixes #11788 - focusin focusout instead of focus/blur
Diffstat (limited to 'js')
| -rw-r--r-- | js/tooltip.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/tooltip.js b/js/tooltip.js index 842a0ebba..9d1e8421b 100644 --- a/js/tooltip.js +++ b/js/tooltip.js @@ -50,8 +50,8 @@ if (trigger == 'click') { this.$element.on('click.' + this.type, this.options.selector, $.proxy(this.toggle, this)) } else if (trigger != 'manual') { - var eventIn = trigger == 'hover' ? 'mouseenter' : 'focus' - var eventOut = trigger == 'hover' ? 'mouseleave' : 'blur' + var eventIn = trigger == 'hover' ? 'mouseenter' : 'focusin' + var eventOut = trigger == 'hover' ? 'mouseleave' : 'focusout' this.$element.on(eventIn + '.' + this.type, this.options.selector, $.proxy(this.enter, this)) this.$element.on(eventOut + '.' + this.type, this.options.selector, $.proxy(this.leave, this)) |
