99
Views
1
Comments
[Magnific Popup] Close event
Question
magnific-popup
Web icon
Forge asset by Matheus Medeiros

I tried this popup because I hoped that it would send an event when the popup is closed. This is, as far I can see, not the case. 

Would it be possible to add an event that triggers when the popup is closed (with the native close icon in the upper right corner)? 

2019-06-23 20-19-45
Matheus Medeiros

Hi Vincent,


In order to notify when the popup is closed, you will have to enable the IsModal property (to hide the default close button) and create your own close button with an Screen Action that will call the Magnific_Popup_Notify to notify the parent and then use the Magnific_Popup_Close to close it.


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.