From 148c5c8237aed30eb62932ce58efe5a21d4bbf01 Mon Sep 17 00:00:00 2001 From: Akira Sudoh Date: Sat, 23 Mar 2019 04:14:06 +0900 Subject: [PATCH] fix(modal): fix JavaScript error in IE11 (#2183) We hit babel/babel#7597 with our logic turning `NodeList` to an array, but turned out it's not needed there. Fixes #2068. Note: merging without reviewing on IE11 because designers are not set up with IE11. Will make an IE11 specific visual pass on all components & website after release. --- src/globals/js/mixins/init-component-by-launcher.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/globals/js/mixins/init-component-by-launcher.js b/src/globals/js/mixins/init-component-by-launcher.js index 00ab1bdff148..9796246bee0f 100644 --- a/src/globals/js/mixins/init-component-by-launcher.js +++ b/src/globals/js/mixins/init-component-by-launcher.js @@ -45,9 +45,7 @@ export default function(ToMix) { if (launcher) { event.delegateTarget = launcher; // eslint-disable-line no-param-reassign - const elements = [ - ...launcher.ownerDocument.querySelectorAll(launcher.getAttribute(effectiveOptions.attribInitTarget)), - ]; + const elements = launcher.ownerDocument.querySelectorAll(launcher.getAttribute(effectiveOptions.attribInitTarget)); if (elements.length > 1) { throw new Error('Target widget must be unique.'); }