无法在 ui-select.js 中的 ctrl.getplaceholder 处获取 属性 'length' 未定义或空引用

Unable to get property 'length' of undefined or null reference at ctrl.getplaceholder in ui-select.js

您好,我正在为多个自动完成实现 ui-select angular 指令。使用 angular 版本 1.2.18 它工作正常但是当我使用 angular 1.5.5 时出现如下错误: 无法在 ctrl.getplaceholder

获得未定义或空引用的 属性 'length'

我的Html代码是:

<ui-select multiple tagging="tagTransform" tagging-tokens="SPACE|,|/" ng-model="demo.selectedPeople" style="width: 800px;">
    <ui-select-match placeholder="Select person...">{{$item.name}}</ui-select-match>
    <ui-select-choices repeat="person in people | propsFilter: {name: $select.search}">
        <div ng-if="person.isTag" ng-bind-html="person.name + ' ' + $select.taggingLabel | highlight: $select.search"></div>
        <div ng-if="!person.isTag" ng-bind-html="person.name| highlight: $select.search"></div>

    </ui-select-choices>
    </ui-select>

我的控制器代码是:

lampiApp.controller('DemoCtrl', function ($scope, $http) {


$scope.tagTransform = function (newTag) {
    var item = {
        name: newTag,

    };

    return item;
};

$scope.people=[];
var str = "January,February,March,April,May,June,July,August,September,October singh";
var splittedString = str.split(',');
var arr = [];
splittedString.forEach(function (v) {
    arr.push({ name: v });
});

$scope.people = arr;

});
1.This was the Error that is related to angular version i figure out the solution by myself , see it at this Plnkr
2.http://plnkr.co/edit/230zLWeyACfReVaPZ0LM?p=preview