Hide Angular UI Bootstrap popover when clicking outside of it

后端 未结 12 2138
野趣味
野趣味 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:47

    What you are looking for is

    
    

    From the documentation - The outsideClick trigger will cause the popover to toggle on click, and hide when anything else is clicked.

提交回复
热议问题