Skip to content
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

Maximum call stack size exceeded when I specified an incorrect mask in the parameters #2762

Open
IuriiKin opened this issue Dec 18, 2023 · 0 comments

Comments

@IuriiKin
Copy link

IuriiKin commented Dec 18, 2023

I'm using version 5.0.8

When I specified an incorrect mask in the parameters, for example: 9{,

Inputmask({
mask: "9{",
clearIncomplete: true,
}).mask(...)

I get an error in the console
inputmask.js:2493 Uncaught RangeError: Maximum call stack size exceeded
at get [Symbol.species] ()
at Array.slice ()
at eval (inputmask.js:2493:169)
at y.u (inputmask.js:2496:30)
at y.s (inputmask.js:2343:80)
at y.o (inputmask.js:2332:47)
at eval (inputmask.js:2493:156)
at y.u (inputmask.js:2496:30)
at y.s (inputmask.js:2343:80)
at y.o (inputmask.js:2332:47)

In this case, the browser page freezes completely.

On our service, the user independently sets the mask through a text field. The user may make a mistake and enter the wrong mask.

Tell me how to make sure that the page does not freeze if an incorrect mask is entered?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant