HubSpot / drop

A library for creating dropdowns and other floating elements. #hubspot-open-source
http://github.hubspot.com/drop/docs/welcome
MIT License
2.36k stars 210 forks source link

content doesn't seem to work with ng-repeat #135

Open light-and-salt opened 8 years ago

light-and-salt commented 8 years ago

Hi, I'm using Drop.js with Angular.js and have a question: ng-repeat doesn't seem to work inside a content DOM element?

My minimal non-working demo here: https://plnkr.co/edit/UcSC3x?p=preview

Having an ng-repeat directive inside a content element produces "TypeError: Cannot read property 'insertBefore' of null"

screen shot 2016-01-16 at 6 21 08 pm

In the DOM tree, the ng-repeat element is commented screen shot 2016-01-16 at 6 20 50 pm

Could you suggest why ng-repeat is commented and if there's any work-around?

light-and-salt commented 8 years ago

My problem is solved on StackOverflow: http://stackoverflow.com/q/34820111/1270459