vickramravichandran / angular-auto-complete

AngularJS auto complete plugin
http://demo.vickram.me/angular-auto-complete
Other
28 stars 31 forks source link

ctrl.container.has is not a function #7

Closed mathieu-morchipont closed 7 years ago

mathieu-morchipont commented 7 years ago

I have an error "ctrl.container.has is not a function" line 255 after update 1.3.0 to 1.4.0

Thks

vickramravichandran commented 7 years ago

I think it now has a dependency on jQuery now: https://api.jquery.com/has/

Can you add jQuery to your page and let me know if that fixes it?

mathieu-morchipont commented 7 years ago

Good

RobbertWolfs commented 7 years ago

@vickramravichandran Any solution without using jQuery? Because we don't have and want jQuery in our project and we updated to 1.4.2 and now we get the same error...

vickramravichandran commented 7 years ago

@RobbertWolfs Without jQuery I will need to implement the same using native JavaScript. See this from an earlier version https://github.com/vickramravichandran/angular-auto-complete/blob/v1.2.0/angular-auto-complete.js#L181

I went with jQuery because it was not working consistently across different browsers.

RobbertWolfs commented 7 years ago

Any idea which browsers? ;)

vickramravichandran commented 7 years ago

Chrome, Firefox and Safari.