aboutsummaryrefslogtreecommitdiff
path: root/js/src/dom/eventHandler.js
diff options
context:
space:
mode:
authorJohann-S <[email protected]>2018-07-25 11:29:16 +0200
committerXhmikosR <[email protected]>2019-02-20 22:05:45 +0200
commitc44db783bf17c907dd46f53fdaa917ec74ffbded (patch)
tree69a380068b58961b01e5cd465e118dbda4d376dd /js/src/dom/eventHandler.js
parentcf821e1d4d1d67f6b4ce9651ae64c72a502c40ba (diff)
downloadbootstrap-c44db783bf17c907dd46f53fdaa917ec74ffbded.tar.xz
bootstrap-c44db783bf17c907dd46f53fdaa917ec74ffbded.zip
chore(update): bump to 4.1.3
Diffstat (limited to 'js/src/dom/eventHandler.js')
-rw-r--r--js/src/dom/eventHandler.js18
1 files changed, 17 insertions, 1 deletions
diff --git a/js/src/dom/eventHandler.js b/js/src/dom/eventHandler.js
index 17f6d077a..259f575ed 100644
--- a/js/src/dom/eventHandler.js
+++ b/js/src/dom/eventHandler.js
@@ -3,7 +3,7 @@ import Util from '../util'
/**
* --------------------------------------------------------------------------
- * Bootstrap (v4.1.1): dom/eventHandler.js
+ * Bootstrap (v4.1.3): dom/eventHandler.js
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* --------------------------------------------------------------------------
*/
@@ -32,6 +32,7 @@ const EventHandler = (() => {
'keydown', 'keypress', 'keyup',
'orientationchange',
'touchstart', 'touchmove', 'touchend', 'touchcancel',
+ 'pointerdown', 'pointermove', 'pointerup', 'pointerleave', 'pointercancel',
'gesturestart', 'gesturechange', 'gestureend',
'focus', 'blur', 'change', 'reset', 'select', 'submit', 'focusin', 'focusout',
'load', 'unload', 'beforeunload', 'resize', 'move', 'DOMContentLoaded', 'readystatechange',
@@ -314,4 +315,19 @@ const EventHandler = (() => {
}
})()
+/* istanbul ignore next */
+// focusin and focusout polyfill
+if (Polyfill.focusIn) {
+ (() => {
+ function listenerFocus(event) {
+ EventHandler.trigger(event.target, 'focusin')
+ }
+ function listenerBlur(event) {
+ EventHandler.trigger(event.target, 'focusout')
+ }
+ EventHandler.on(document, 'focus', 'input', listenerFocus)
+ EventHandler.on(document, 'blur', 'input', listenerBlur)
+ })()
+}
+
export default EventHandler