Skip to content

TypeError: values.map is not a function #40

@sumeetmobiwebtech

Description

@sumeetmobiwebtech
How to solve this ?

i am using this 

<md-input-container>     
               <label for="name">Accounts:</label>    
               <select chosen multiple options="accountListData" on-change="doStuff"
                   ng-model="incomeFilters.account"
                   ng-options="ald.accountID as ald.accountHolderName for ald in accountListData" class="form-control">
               </select>
            </md-input-container>

But Getting this error in console after select------

angular.js:14700 TypeError: values.map is not a function
    at SelectController.writeNgOptionsMultiple [as writeValue] (angular.js:30513)
    at Object.ngModelCtrl.$render (angular.js:33327)
    at selectMultipleWatch (angular.js:33300)
    at Scope.$digest (angular.js:18253)
    at Scope.$apply (angular.js:18531)
    at HTMLButtonElement.<anonymous> (angular.js:27346)
    at HTMLButtonElement.dispatch (jquery.min.js:4)
    at HTMLButtonElement.r.handle (jquery.min.js:4)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions