-
Notifications
You must be signed in to change notification settings - Fork 6.8k
fix(select): exception when initialized with large amount of options #12517
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
fix(select): exception when initialized with large amount of options #12517
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
When can you expect to deploy of this fix? |
Any update? |
Hi @crisbeto! This PR has merge conflicts due to recent upstream merges. |
2a19d34
to
9845966
Compare
9845966
to
7592bf7
Compare
Any updates? |
7592bf7
to
8f999a0
Compare
8f999a0
to
b75a398
Compare
I'm bumping this to a P2 since we keep getting reports about it. |
b75a398
to
2597bb9
Compare
Looks like I rebased this while there were build errors in master. It should be rebased once #16928 gets in. |
2597bb9
to
0160de0
Compare
Any reason not to merge it now? Thanks. |
0160de0
to
91e35f4
Compare
91e35f4
to
038525b
Compare
We are seeing internal failures that seem to be related to using a See this PR for an associated failing test: crisbeto#12 |
Fixes an error being thrown by `mat-select` when it is initialized with a large amount of pre-selected options. The issue comes from the fact that we add a change listener right before the initial values are assigned rather than afterwards. Fixes angular#12504.
038525b
to
bf013e7
Compare
I think the underlying issue was fixed in a better way by #17071 a while ago. I tried running the attached unit test against master and it passes without any of these changes. I'll close the PR for now and we can reconsider it if it shows up again. |
Awesome! |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Fixes an error being thrown by
mat-select
when it is initialized with a large amount of pre-selected options. The issue comes from the fact that we add a change listener right before the initial values are assigned rather than afterwards.Fixes #12504.