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.

Error when select (click or enter) option on MdAutocomplete #9094

Closed
@pablorsk

Description

@pablorsk
angular.js:13708 TypeError: Cannot read property 'focus' of undefined
    at MdAutocompleteCtrl.onMouseup [as mouseUp] (angular-material.js:24008)
    at fn (eval at compile (angular.js:14605), <anonymous>:4:313)
    at expensiveCheckFn (angular.js:15694)
    at callback (angular.js:25622)
    at Scope.$eval (angular.js:17444)
    at Scope.$apply (angular.js:17544)
    at Scope.scopePrototype.$apply (hint.js:1427)
    at HTMLElement.<anonymous> (angular.js:25627)
    at HTMLElement.dispatch (jquery.js:4737)
    at HTMLElement.elemData.handle (jquery.js:4549)(anonymous function) @ angular.js:13708(anonymous function) @ angular.js:10347$apply @ angular.js:17549scopePrototype.$apply @ hint.js:1427(anonymous function) @ angular.js:25627dispatch @ jquery.js:4737elemData.handle @ jquery.js:4549
angular.js:13708 TypeError: Cannot read property '$setViewValue' of undefined
    at angular-material.js:24334
    at processQueue (angular.js:16170)
    at angular.js:16186
    at Scope.$eval (angular.js:17444)
    at Scope.$digest (angular.js:17257)
    at Scope.scopePrototype.$digest (hint.js:1364)
    at angular.js:17483
    at completeOutstandingRequest (angular.js:5955)
    at angular.js:6234

Actual Behavior:

  • What is the issue? *
  • What is the expected behavior?

Angular Versions: *

  • Angular Version: 1.7.5
  • Angular Material Version: 1.1.0-rc.5

Additional Information:

  • Browser Type: * Chrome
  • Browser Version: * 51
  • OS: * Ubuntu
  • Stack Traces:

When I use ENTER, only sencond error appear.

Maybe is related with #8111

Metadata

Metadata

Assignees

Labels

needs: demoA CodePen demo or GitHub repository is needed to demonstrate the reproduction of the issue

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions