JS Error if Trap Focus & Use JavaSript Age Gate is turned on
-
I noticed that if “Use JavaScript Age Gate” and “Trap Focus” is turned on, the Trap Focus does not work and I get a JS error in the console:
Uncaught DOMException: Failed to execute 'querySelector' on 'Document': The provided selector is empty. at https://www.organisolutions.com/wp-content/plugins/age-gate/public/js/age-gate-public.js?ver=2.18.4:1:4545 at Array.forEach (<anonymous>) at e.value (https://www.organisolutions.com/wp-content/plugins/age-gate/public/js/age-gate-public.js?ver=2.18.4:1:4516) at e.value (https://www.organisolutions.com/wp-content/plugins/age-gate/public/js/age-gate-public.js?ver=2.18.4:1:3500) at e.value (https://www.organisolutions.com/wp-content/plugins/age-gate/public/js/age-gate-public.js?ver=2.18.4:1:2499) at new e (https://www.organisolutions.com/wp-content/plugins/age-gate/public/js/age-gate-public.js?ver=2.18.4:1:1923) at HTMLDocument.<anonymous> (https://www.organisolutions.com/wp-content/plugins/age-gate/public/js/age-gate-public.js?ver=2.18.4:1:886) at e (https://www.organisolutions.com/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:30038) at t (https://www.organisolutions.com/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:30340) (anonymous) @ jquery.min.js?ver=3.6.0:2 setTimeout (async) S.readyException @ jquery.min.js?ver=3.6.0:2 (anonymous) @ jquery.min.js?ver=3.6.0:2 e @ jquery.min.js?ver=3.6.0:2 t @ jquery.min.js?ver=3.6.0:2 setTimeout (async) (anonymous) @ jquery.min.js?ver=3.6.0:2 c @ jquery.min.js?ver=3.6.0:2 fireWith @ jquery.min.js?ver=3.6.0:2 fire @ jquery.min.js?ver=3.6.0:2 c @ jquery.min.js?ver=3.6.0:2 fireWith @ jquery.min.js?ver=3.6.0:2 t @ jquery.min.js?ver=3.6.0:2 setTimeout (async) (anonymous) @ jquery.min.js?ver=3.6.0:2 c @ jquery.min.js?ver=3.6.0:2 fireWith @ jquery.min.js?ver=3.6.0:2 fire @ jquery.min.js?ver=3.6.0:2 c @ jquery.min.js?ver=3.6.0:2 fireWith @ jquery.min.js?ver=3.6.0:2 ready @ jquery.min.js?ver=3.6.0:2 B @ jquery.min.js?ver=3.6.0:2
It almost looks like the JavaScript executes before the popup gets loaded. Can you check into this? Thank you!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘JS Error if Trap Focus & Use JavaSript Age Gate is turned on’ is closed to new replies.