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

uib-popover not disappearing when used with uib-datepicker-popup #6513

Open LaniMoo opened 7 years ago

LaniMoo commented 7 years ago

Bug description:

I'm using a uib-datepicker-popup with a uib-popover triggered by "mouseenter". The popover appears just fine when I mouse over the datepicker element. But if I select a date, the popover remains visible until I mouse over the datepicker element again.

This only started happening after I updated from UIBS 0.13.0 and Angular 1.3.6. Before that the popover would disappear just fine.

Link to minimally-working plunker that reproduces the issue:

Plunker

Steps to reproduce the issue:

  1. Mouse over datepicker input and observe popover
  2. Click datepicker button
  3. Select a date or click Close
  4. Notice "I won't go away" popover won't go away

Version of Angular, UIBS, and Bootstrap

Angular: 1.6.3

UIBS: 2.5.0

Bootstrap: 3.3.7

LaniMoo commented 7 years ago

In case anyone else runs into this, a simple workaround would be to add the popover to the input element instead.

Workaround source