angular-date-dropdowns icon indicating copy to clipboard operation
angular-date-dropdowns copied to clipboard

TypeError: Cannot read property 'split' of undefined

Open coreysnyder04 opened this issue 9 years ago • 2 comments

The issue is on this line: https://github.com/rorymadden/angular-date-dropdowns/blob/master/directive.js#L141

My attrs variable doesn't have a required attribute so you can't call split on undefined.

I see you require angular 1.2.1 and I'm on angular 1.3.15. Is that the issue?

coreysnyder04 avatar Nov 16 '15 19:11 coreysnyder04

I had the same. Just use ng-required="true|false"

and remove the whole check.

karensg avatar Dec 17 '15 11:12 karensg

This still happens.

jaime-franco avatar Sep 21 '16 22:09 jaime-franco