From 944187f276afdc7a34931aca152ea4ced3abc7f9 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 19 Feb 2019 22:00:55 -0500 Subject: [PATCH] ie11 fix --- src/app/polyfills.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/polyfills.ts b/src/app/polyfills.ts index c0d0ee3685..e0d1127e80 100644 --- a/src/app/polyfills.ts +++ b/src/app/polyfills.ts @@ -3,6 +3,11 @@ import 'core-js/es6'; import 'core-js/es7/reflect'; require('zone.js/dist/zone'); +// IE11 fix, ref: https://github.com/angular/angular/issues/24769 +if (!Element.prototype.matches && (Element.prototype as any).msMatchesSelector) { + Element.prototype.matches = (Element.prototype as any).msMatchesSelector; +} + if (process.env.ENV === 'production') { // Production } else {