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.

Issue: TypeError: Cannot read property 'length' of undefined at ctrl.getPlaceholder  #519

Closed
@balteo

Description

@balteo

I use the latest version of Angular ui select and I get the following error:

TypeError: Cannot read property 'length' of undefined
at ctrl.getPlaceholder (http://localhost:8080/bower_components/angular-ui-select/dist/select.js:507:40)
at $parseFunctionCall (http://localhost:8080/bower_components/angular/angular.js:12299:18)
at Object.expressionInputWatch (http://localhost:8080/bower_components/angular/angular.js:12702:31)
at Scope.$digest (http://localhost:8080/bower_components/angular/angular.js:14187:40)
at Scope.$apply (http://localhost:8080/bower_components/angular/angular.js:14457:24)
at http://localhost:8080/bower_components/angular/angular.js:16183:36
at completeOutstandingRequest (http://localhost:8080/bower_components/angular/angular.js:4889:10)
at http://localhost:8080/bower_components/angular/angular.js:5269:7

Here is my markup:

<div class="form-group">
    <label class="control-label col-lg-2" for="languages">languages</label>
    <div class="col-lg-5">
        <ui-select id="languages" name="languages" multiple ng-model="curriculum.languages" reset-search-input="true" theme="bootstrap">
            <ui-select-match placeholder="Select language...">{{$item.description}}</ui-select-match>
            <ui-select-choices repeat="language in languages" refresh="chooseLanguages($select.search)" refresh-delay="0">
                {{language.description}}
            </ui-select-choices>
        </ui-select>
    </div>
    <div ng-messages="curriculumForm.languages.$error" class="col-lg-5">
        <div ng-message="languages.minSize">min size</div>
    </div>
</div>

I am not sure if this is a bug or if I am getting something wrong...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions