angular-ui / bootstrap

PLEASE READ THE PROJECT STATUS BELOW. Native AngularJS (Angular) directives for Bootstrap. Smaller footprint (20kB gzipped), no 3rd party JS dependencies (jQuery, bootstrap JS) required. Please read the README.md file before submitting an issue!
http://angular-ui.github.io/bootstrap/
MIT License
14.29k stars 6.73k forks source link

Dropdown still uses element.bind() #6444

Closed sbaechler closed 6 years ago

sbaechler commented 7 years ago

Bug description:

Ui-Bootstrap Dropdown throws an exception if an app imports jQuery.slim. That version of jQuery does not have an element.bind() property anymore.

You could simply replace bind with on.

Link to minimally-working plunker that reproduces the issue:

Steps to reproduce the issue:

Version of Angular, UIBS, and Bootstrap

edmorley commented 7 years ago

This looks like it was fixed in 2.3.0? https://github.com/angular-ui/bootstrap/commit/08b50ccb1c2daa2c8b6bf7460d310aa5638197ee

Are you sure the STR above was definitely using 2.5.0?

edmorley commented 7 years ago

Also that fix was missing from the 2.3.0 changelog entry: https://github.com/angular-ui/bootstrap/blob/master/CHANGELOG.md#230-2016-11-26

Would someone mind adding a "Fixed jQuery.fn.bind() deprecation warning under jquery 3" to the changelog?