mirror of
https://github.com/twbs/bootstrap.git
synced 2025-09-03 02:13:01 +02:00
fix(event-handler): remove polyfill and move it to index
This commit is contained in:
@@ -307,18 +307,4 @@ const EventHandler = (() => {
|
||||
}
|
||||
})()
|
||||
|
||||
// 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
|
||||
|
Reference in New Issue
Block a user