selectize-ng icon indicating copy to clipboard operation
selectize-ng copied to clipboard

Spurious, untraceable error in console

Open smlombardi opened this issue 10 years ago • 1 comments

I have a project with selectize-ng menus. One one page, no issues. On another page, I'm getting this error (although the menu itself is working and populated):

TypeError: Cannot read property 'name' of undefined
    at a.extend.addOption (selectize-ng.min.js:2)
    at l (selectize-ng.min.js:5)
    at Object.fn (angular.min.js:120)
    at k.$digest (angular.min.js:122)
    at k.$apply (angular.min.js:125)
    at n (angular.min.js:80)
    at O (angular.min.js:84)
    at XMLHttpRequest.B.onload (angular.min.js:85)

See http://stackoverflow.com/questions/29222526/angular-js-selectize-error for full code.

smlombardi avatar Mar 23 '15 23:03 smlombardi

You have to have at least an empty array of options. If the bound options is null you will get this.

rcollette avatar Apr 01 '15 22:04 rcollette