-
Notifications
You must be signed in to change notification settings - Fork 404
Fix IE11 error - SCRIPT438: Object doesn't support property or method 'forEach' #1255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
packages/uikit-workshop/src/scripts/components/modal-styleguide.js
Outdated
Show resolved
Hide resolved
I would love to see pattern lab running in IE11. I had some issues with that for a customer. |
FWIW, the overhauled Pattern Lab UI previously was working ok (albeit a
little sluggish at times + with no CSS custom vars support) in IE 11...
Looks like the main UI is rendering (doing a super quick spot check) so
hopefully there's just a few bugs to smooth over:
https://www.webpagetest.org/result/200902_M8_2e9cad478c95bbfc70057edddc4a674f/1/screen_shot/#step_1
…On Wed, Sep 2, 2020 at 1:04 PM Josef Bredreck ***@***.***> wrote:
I would love to see pattern lab running in IE11. I had some issues with
that for a customer.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<#1255 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMK2OOKPUMGHSSMOOIUWQ3SDZ3LVANCNFSM4QRH23DA>
.
|
Sorry that I highjacked this PR but there was much more to do then just adding an if. |
packages/uikit-workshop/src/scripts/components/modal-styleguide.js
Outdated
Show resolved
Hide resolved
@JosefBredereck @ringods with the new syntax of the |
packages/uikit-workshop/src/scripts/components/modal-styleguide.js
Outdated
Show resolved
Hide resolved
packages/uikit-workshop/src/scripts/components/modal-styleguide.js
Outdated
Show resolved
Hide resolved
I just tested all changes; with the production source, we had so many problems in the past. Everything works fine in IE11 now. I will merge now. |
Released with v5.13.1 |
* Fix IE11 error - SCRIPT438: Object doesn't support property or method 'forEach' * Update uikit polyfills to run pl in ie11 * Update packages/uikit-workshop/src/scripts/components/modal-styleguide.js * Update modal-styleguide.js Co-authored-by: Ofer Shaal <ofer@3paces.com> Josef Bredreck <slime.games@outlook.de>
Running PL 5.13.0 on Internet Explorer 11, and I am getting this error.
SCRIPT438: Object doesn't support property or method 'forEach'
Summary of changes:
When this class is not in a page
'.pl-js-pattern-extra-toggle'
, the array is empty, andforEach
throw an error.Checking that the array is not empty before running forEach function.