GDPR icon indicating copy to clipboard operation
GDPR copied to clipboard

Can't close modals

Open Matthieu1987 opened this issue 6 years ago • 2 comments

Hello we have problem with some modals. They won't close and trigger error.

https://github.com/trewknowledge/GDPR/blob/e57d58770841447b659272a13c80448829227ece/src/js/public/gdpr-public.js#L96

gdpr-public.js?ver=2.1.0:1 Uncaught TypeError: t[o] is not a function var o = e(this).data("callback"); t[o]() Maybe there are no callback in the element ? However, i just verify if the function exist before trigger it. var o = e(this).data("callback"); if(typeof t[o] === 'function'){ t[o]() }

Matthieu1987 avatar Sep 21 '18 09:09 Matthieu1987

@Matthieu1987 It looks like this is due to data-callback="closeNotification" missing from https://github.com/trewknowledge/GDPR/blob/develop/public/partials/confirmation-screens.php#L58

I just ran into the same problem. It was looking for the data property with the name callback and a function name to call. But since none is provided, it can't find the function to call.

brianweyer avatar Oct 13 '18 18:10 brianweyer

This is still an issue!

wking-io avatar May 15 '19 14:05 wking-io