React Bootstrap - How to manually close OverlayTrigger

后端 未结 4 642
醉梦人生
醉梦人生 2021-01-01 17:03

I have an OverlayTrigger wrapping a Popover that contains some form inputs and a Button to save the data and close.

         


        
4条回答
  •  攒了一身酷
    2021-01-01 17:57

    Add a ref to the element and call the hide method once the element has been rendered. Haven't tested it but should work:

    this.refs.overlay.hide();
    

提交回复
热议问题