This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Description
Actual Behavior:
Removing a chip from an md-chips using md-autocomplete throws an exception:
console_runner-d0a557e….js:1 TypeError: Cannot read property 'nextTick' of undefined
at MdChipsCtrl.removeChipAndFocusInput (angular-material.js:24883)
at fn (eval at compile (angular.js:14432), :4:516)
at expensiveCheckFn (angular.js:15485)
at callback (angular.js:25018)
at ChildScope.$eval (angular.js:17229)
at ChildScope.$apply (angular.js:17329)
at HTMLButtonElement. (angular.js:25023)
at defaultHandlerWrapper (angular.js:3456)
at HTMLButtonElement.eventHandler (angular.js:3444)
What is the expected behavior?
That removing a chip not throw an error
CodePen (or steps to reproduce the issue): *
CodePen Demo which shows your issue:
The CodePen demo for md-chips produces this behaviour, or here for a minimal demo:
CodePen
Details:
Add a chip then remove it. An error will be thrown.
Angular Versions: *
Angular Version: 1.5.8
Angular Material Version: 1.1.1
This works fine on 1.1.0