trigger popup in javascript (page transition event)
-
The popup doesn’t know what page we’re on because we’re using barba js for page transitions.
A solution would be trigger the popup in js.
I saw a thread to use something along the lines of:
let popupObj = SGPBPopup.createPopupObjById(xxxx); popupObj.prepareOpen();But with that webpack does not know what SGPBPopup is.
How do I import SGPBPopup to use in JS, is this possible?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘trigger popup in javascript (page transition event)’ is closed to new replies.