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

ERROR RangeError: Maximum call stack size exceeded #14

Open
socialitydev4 opened this issue Oct 23, 2019 · 0 comments
Open

ERROR RangeError: Maximum call stack size exceeded #14

socialitydev4 opened this issue Oct 23, 2019 · 0 comments

Comments

@socialitydev4
Copy link

socialitydev4 commented Oct 23, 2019

When the item has a large number of options, when deselecting everything, the following error occurs in Chrome:
ERROR RangeError: Maximum call stack size exceeded
and in Firefox:
ERROR InternalError: "too much recursion"

You can reproduce this in the example (https://stackblitz.com/edit/mat-select-autocomplete-formcontrol?file=src%2Fapp%2Fapp.component.ts) by adding the following to the constructor (which simply creates many options):
for (var i=7; i<1600; i++) {
this.options.push({display: i,value: i});
}

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