Hide Angular UI Bootstrap popover when clicking outside of it

后端 未结 12 2135
野趣味
野趣味 2020-11-30 07:37

I am trying to manually close a bootstrap popover to get it to close when I click anywhere on the document or body that isn\'t the popover.

12条回答
  •  时光取名叫无心
    2020-11-30 07:54

    UPDATE: With the 1.0 release, we've added a new trigger called outsideClick that will automatically close the popover or tooltip when the user clicks outside the popover or tooltip.

    Starting with the 0.14.0 release, we've added the ability to programmatically control when your tooltip/popover is open or closed via the tooltip-is-open or popover-is-open attributes.

提交回复
热议问题