From 594610be29e8bd6e8c212e053572da92b02f5ed4 Mon Sep 17 00:00:00 2001 From: Chris Graham Date: Fri, 23 Jul 2021 09:43:59 -0500 Subject: [PATCH] transitionEnd not defined, nasty bug --- src/models/Popup.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/models/Popup.js b/src/models/Popup.js index 8a661098..6625c63e 100644 --- a/src/models/Popup.js +++ b/src/models/Popup.js @@ -32,7 +32,7 @@ export default class Popup extends Base { MARKETING : 'DISMISS' } this.customStyles = {} - this.hasTransition = !!(function() { + this.transitionEnd = (function() { const el = document.createElement('div') const trans = { t: 'transitionend', @@ -52,6 +52,7 @@ export default class Popup extends Base { } return '' })() + this.hasTransition = !!this.transitionEnd; // returns true if `onComplete` was called if (this.canUseCookies()) {