ui-select icon indicating copy to clipboard operation
ui-select copied to clipboard

checking length on undefined.

Open gshireesh opened this issue 11 years ago • 3 comments

at ctrl.getPlaceholder = function(){ //Refactor single? if($select.selected.length) return;
// code suggested here if($select.selected && $select.selected.length) RETURN; return $select.placeholder; };

angular.js:12330 TypeError: Cannot read property 'length' of undefined at uis.directive.controller.ctrl.getPlaceholder (http://localhost:3000/vendor/js/select.js:1148:28) at fn (eval at (http://localhost:3000/vendor/js/angular.js:13145:15), :2:285) at Object.expressionInputWatch as get at Scope.$get.Scope.$digest (http://localhost:3000/vendor/js/angular.js:15675:40) at Scope.$get.Scope.$apply (http://localhost:3000/vendor/js/angular.js:15951:24) at HTMLDivElement. (http://localhost:3000/vendor/js/angular.js:23303:23) at HTMLDivElement.jQuery.each.jQuery.event.special.(anonymous function).handle (http://localhost:3000/vendor/js/jquery.js:4765:29) at HTMLDivElement.jQuery.event.dispatch (http://localhost:3000/vendor/js/jquery.js:4435:9) at HTMLDivElement.jQuery.event.add.elemData.handle (http://localhost:3000/vendor/js/jquery.js:4121:28)

gshireesh avatar Jul 23 '15 12:07 gshireesh

Fixed in #1115 (waiting to be merged).

arikfr avatar Jul 30 '15 10:07 arikfr

https://github.com/angular-ui/ui-select/pull/1115 merged

dimirc avatar Jul 31 '15 22:07 dimirc

Any chance to get this fix released soon? :)

danielwegener avatar Sep 04 '15 06:09 danielwegener