autocomplete(perf): each keypress fires 3 $digests (shift, alt, ctrl key fires infinitely) #10744
Description
Actual Behavior:
-
What is the issue? *
Video: https://www.screencast.com/t/as67DajHFV
<md-autocomplete/>
causes too many $digest cycles on each key press. In our complex app with big amount of watchers, it causes text-cursor freezing (and app at all). -
What is the expected behavior?
Is it possible to reduce to 1 $digest or/and apply ng-model-options debounce functionality in some way?
https://docs.angularjs.org/api/ng/directive/ngModelOptions
CodePen (or steps to reproduce the issue): https://codepen.io/anon/pen/yXVwRa?editors=1010
CodePen Demo which shows your issue:
https://codepen.io/anon/pen/yXVwRa?editors=1010Details:
Open browser console to see the result and type the text into<md-autocomplete/>
.
AngularJS Versions: *
AngularJS Version:
1.6.4AngularJS Material Version:
1.1.4
Additional Information:
Browser Type: *
Browser Version: *
OS: *
Stack Traces:
Shortcut to create a new CodePen Demo.
Note: *
indicates required information. Without this information, your issue may be auto-closed.
Do not modify the titles or questions. Simply add your responses to the ends of the questions.
Add more lines if needed.