Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Cannot read property 'source' of undefined #1440

Closed
@arjanvlek

Description

@arjanvlek

I have upgraded angular to 1.5.0 and am using ui-select version 0.13.1
I get the following error:
Cannot read property 'source' of undefined, at line 1598 of select.js ( var data = $select.parserResult.source (scope, { $select : {search:''}}), //Overwrite $search)

This is my html code:

<ui-select
    required
    ng-model="myController.selectedItem"
    ng-disabled="myController.contract.employee.id !== null &&
    myController.contract.employee.id !== undefined"
    theme="bootstrap">
    <ui-select-match placeholder="Zoek naar medewerker...">{{$select.selected.fullName}}</ui-select-match>
    <ui-select-choices repeat="employee in myController.employees | filter: $select.search | orderBy: 'fullName'">
        <span ng-bind-html="employee.fullName | highlight: $select.search"></span>
    </ui-select-choices>
</ui-select>

How can I fix this issue?

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