mgcrea / angular-strap

AngularJS 1.2+ native directives for Bootstrap 3.
mgcrea.github.io/angular-strap
MIT License
5.73k stars 1.38k forks source link

$popover can throw null pointer when show: true and placement:'auto right' #2253

Closed michaelabuckley closed 5 years ago

michaelabuckley commented 7 years ago

I get null pointer errors when creating a $popover, and the auto-placement switches sides. It seems $tooltip.focus() is called in the animation loop at line 247 before the tipElement is created, and I get a null pointer at line 350 of tooltip.js

    $tooltip.focus = function () {
        tipElement[0].focus();
    };

I've failed to reproduce via jsfiddle, so I'm just going to fork and make a dumb fix. PR to follow.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

lock[bot] commented 5 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.