commit 5255342df86821e12a99dca801b38bf294f50a90
parent 2b41be8536bb234c1f8a8848654d7657093d10e7
Author: Sergej Orlov <wladimirych@gmail.com>
Date: Wed, 25 Jan 2017 11:52:04 +0300
fixed [raise-on-focus]
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lib/leaflet.controls.raise-on-focus/index.js b/src/lib/leaflet.controls.raise-on-focus/index.js
@@ -16,7 +16,7 @@ function raiseControlsOnFocus(map) {
}
}
- elements.forEach((el) => L.DomEvent.on(el, 'mouseenter', raise.bind(null, el)));
+ [...elements].forEach((el) => L.DomEvent.on(el, 'mouseenter', raise.bind(null, el)));
}
export default raiseControlsOnFocus;
\ No newline at end of file