[Magnific Popup] Popup doesn't launch with error in console

Forge Component
Published on 2019-06-26 by Matheus Medeiros
5 votes
Published on 2019-06-26 by Matheus Medeiros

I have tried you popup component but I can not get it working. I get the following error in the browsers console;

Uncaught TypeError: Cannot read property 'indexOf' of undefined
    at Object.<anonymous> (MagnificPopup_Script.js?416:3)
    at Function.each (_osjs.js?11_0_212_0:18)
    at o.getIframe (MagnificPopup_Script.js?416:3)
    at o.updateItemHTML (MagnificPopup_Script.js?416:3)
    at open (MagnificPopup_Script.js?416:3)
    at o.Magnific_Popup_Iframe_init.$.magnificPopup.instance.open (Magnific_Popup.js?416:39)
    at o._openClick (MagnificPopup_Script.js?416:3)
    at HTMLSpanElement.c (MagnificPopup_Script.js?416:3)
    at HTMLSpanElement.dispatch (_osjs.js?11_0_212_0:19)
    at HTMLSpanElement.h (_osjs.js?11_0_212_0:19)

I have attached my test application for reference.

Hi Vincent,

In your sample you are referencing a text instead of a link.

I think you accidentally put the link name in its text.

Arrg, How stupid.  Thnx for pointing that out!