reactjs-popup icon indicating copy to clipboard operation
reactjs-popup copied to clipboard

no event exists for Popup onClose.

Open behzadmehrabi opened this issue 4 years ago • 3 comments

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.

behzadmehrabi avatar Dec 09 '20 07:12 behzadmehrabi

@Bezmehrabi assign ref to Popup then access ref.current.close() method to close Popup

Ravindersingh1526 avatar Jan 04 '21 05:01 Ravindersingh1526

@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 avatar Jan 12 '21 09:01 nmdgent-jefverme

@nmdgent-jefverme https://react-popup.elazizi.com/controlled-popup#using-ref-to-access-popup-actions

yjose avatar Jan 13 '21 14:01 yjose