Skip to content

ERROR RangeError: Maximum call stack size exceeded #14

@socialitydev4

Description

@socialitydev4

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});
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions