Ngx-mask: IE TypeError: Object doesn't support property or method 'include'

Created on 11 Apr 2019  路  3Comments  路  Source: JsDaddy/ngx-mask

This is related to this closed issue: https://github.com/JsDaddy/ngx-mask/issues/337

In IE11 after I enter the second character in a masked input field I am presented with this error.
TypeError: Object doesn't support property or method 'include'

On versions prior to 7.8.9 I get the error either on load or as soon as I click into the input.

I was on version 7.8.9 and updated to the latest (7.9.1) but still had the same issue.
7.0.1 seems to be the last version that doesn't have this issue.

Here are a coupe of the masks having this issue -- basic stuff

<input type="text" id="firstName" name="firstName" formControlName="firstName" maxlength="50" mask="S*" required/>

<input type="text" name="dateOfBirth" id="dateOfBirth" placeholder="MM/DD/YYYY" formControlName="dateOfBirth" mask="M0/d0/0000" [dropSpecialCharacters]="false" required>

image

IE help wanted question

All 3 comments

Thank you!

I already had es6 object and array polyfills in my polyfills.ts but adding es7 did the trick.

for others that run into this, add the following in your polyfills.ts file under
_"/* IE9, IE10 and IE11 requires all of the following polyfills. */"_

import 'core-js/es7/object';
import 'core-js/es7/array';

Thanks again!

@eehaddad we fixed this, you can try to use in the latest version

Was this page helpful?
0 / 5 - 0 ratings

Related issues

v1d3rm3 picture v1d3rm3  路  4Comments

Wisdomb33r picture Wisdomb33r  路  3Comments

lramondev picture lramondev  路  3Comments

Et3rnal picture Et3rnal  路  4Comments

renanBritz picture renanBritz  路  3Comments