-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Popover with custom template doesn't auto close when clicking outside #3855
Comments
Yep seeing this as well. |
I've added plnkr which demonstrates focus trigger, try clicking on the input after opening the custom template popover. |
@yaring @austinpray, the trigger is not on the popover, but on the element on which the popover directive is placed. Thus, when you click on the popover template, the popover element is losing focus and the popover closes. The default trigger for popovers is @wesleycho, I think we can close this. |
As pointed out, one has to set the popover trigger to be |
@icfantv @wesleycho , the problem with the As I showed on angular-strap it's closing it when clicking outside of the popover. |
One could potentially customize the This perhaps requires some more thought on how best to support this. |
I have the same problem, I need a popover with an input field, but that it closed when clicking outside of the popover and not again on the button that activates it. |
@kikar Same here |
With the fix for #590 in place, you guys can now programmatically control when the tooltip is open and closed via the |
https://angular-ui.github.io/bootstrap/#/popover
There is option
popover-trigger="focus"
which closes the popover on any click inside or outside the popover, this behaviour seems to be wrong when using custom template with inputs for example.Please look on angular-strap example, and the third (red one):
http://mgcrea.github.io/angular-strap/#/popovers
Over there after open the popover when click inside the popover nothing happens as it should be, but when you clicking outside it disappears.
Maybe related: mgcrea/angular-strap#1076
I can't find and similar behaviour on ui-select popover.
Plnkr:
http://plnkr.co/edit/iJJ3LCpWR675dUU0Rl5R?p=preview
The text was updated successfully, but these errors were encountered: