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.

TypeError: Cannot read property 'source' of undefined with custom templates #1597

Closed
@katemihalikova

Description

@katemihalikova

Bug description:

When the ui-select is being rendered, error is shown in console:

TypeError: Cannot read property 'source' of undefined
    at Array.<anonymous> (select.js:1840)
    at ngModelWatch (angular.js:26943)
    at Scope.$digest (angular.js:17064)
    at Scope.$apply (angular.js:17337)
    at done (angular.js:11572)
    at completeRequest (angular.js:11778)
    at XMLHttpRequest.requestLoaded (angular.js:11711)

This happens only when using custom templates that need to be fetched.
Seems related to #1440.

Link to minimally-working plunker that reproduces the issue:

http://plnkr.co/edit/Xk6lyhMoqWRAhDg7IK6h?p=preview

Version of Angular, UI-Select, and Bootstrap/Select2/Selectize CSS

Angular 1.5.5
UI-Select 0.16.1
Any CSS

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions