Hide Angular UI Bootstrap popover when clicking outside of it

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

    Add onclick="void(0)" behavior to some of your background elements which when tapped will get rid of the popovers.

    Have a look at https://github.com/angular-ui/bootstrap/issues/2123

提交回复
热议问题