Show one popover and hide other popovers

前端 未结 13 1877
死守一世寂寞
死守一世寂寞 2020-12-24 04:45

i have several buttons and i need a popover for each.
i want it like this:
when my user click on one of them, i want others to be hidden. so only one popover is show

13条回答
  •  感动是毒
    2020-12-24 05:03

    The easiest way to do this is to set trigger="focus" in your popover

    Dismiss on next click

    Use the focus trigger to dismiss popovers on the next click that the user makes.

    Dismissible popover
    

    Note - this will mean the popover will hide as soon as you click off of it

提交回复
热议问题