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.3k stars 6.74k forks source link

fix(tooltip)change to make tooltip work when document contains multile body tags #6598

Open sshelake25 opened 6 years ago

sshelake25 commented 6 years ago

issue raised: https://github.com/angular-ui/bootstrap/issues/6597

change when page contains multiple body tags inside it. uib tooltip does not works when append-to-body option set to true. Previously when it finds multiple body tag, it is appending tooltip to wrong body tag hence not able to see it, also not removing appended tooltip element from DOM. After applying fix it will always takes documents body tag instead of SVG element body tag.

BREAKING CHANGE: When page contains multiple body tag of SVG foreignObject tooltip does not work.