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

md-chips with md-autocomplete throws error when removing chip #9928

@craigsh

Description

@craigsh

Actual Behavior:

  • What is the issue? *

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions