reactjs-popup
reactjs-popup copied to clipboard
no event exists for Popup onClose.
Hi, it seems like the Added ability to stop event propagation from onOpen and onClose props. is missing in version 2.0.4
. as event
is undefined in onClose
.
@Bezmehrabi assign ref to Popup then access ref.current.close() method to close Popup
@Ravindersingh1526 can you give an example of this? I'm using the modal Popup and whenever I user the close() function I get an error that it's not defined.
@nmdgent-jefverme https://react-popup.elazizi.com/controlled-popup#using-ref-to-access-popup-actions