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-select mapFn undefined #6204

@wwhurley

Description

@wwhurley

In some cases the mapFn variable is undefined. This leads to errors like:

TypeError: undefined is not a function
    at Array.map (native)
    at Object.SelectMenuController.self.selectedLabels (http://localhost:9001/vendor/js/angular-material/angular-material.js:13780:34)
    at Scope.$digest (http://localhost:9001/vendor/js/angular/angular.js:15888:40)
    at Scope.$apply (http://localhost:9001/vendor/js/angular/angular.js:16160:24)
    at HTMLElement.clickListener (http://localhost:9001/vendor/js/angular-material/angular-material.js:13648:13)
    at HTMLElement.jQuery.event.dispatch (http://localhost:9001/vendor/js/jquery/jquery.js:4435:9)
    at HTMLElement.elemData.handle (http://localhost:9001/vendor/js/jquery/jquery.js:4121:28)

It appears to be caused by f73e503#diff-d7b463f733c2e3fbc783f38073561b74R632 when mode is equal to display

Metadata

Metadata

Assignees

Labels

P1: urgentUrgent issues that should be addressed in the next minor or patch release.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions