This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
chips(readonly): should not trigger excessive watchers and digests #11753
Labels
needs: investigation
The cause of this issue is not well understood and needs to be investigated by the team or community
P2: required
Issues that must be fixed.
type: performance
This issue is related to performance
Milestone
Test on AngularJS Material 1.1.18
Detailed Reproduction Steps:
What is the expected behavior?
Render immediate
What is the current behavior?
Was added ~12000 watchers and make ~1000 digests (once per added chip). Page will be lags 3-6 sec.
Digests were called from here:
material/src/components/chips/js/chipDirective.js
Line 60 in 97455f5
I think in readonly mode
$timeout
with callfocusLastChipThenInput
can not be run.Codepen:
https://codepen.io/marvelsrp/pen/RzZXgW
The text was updated successfully, but these errors were encountered: