- Issue created by @danflanagan8
- Status changed to Needs review
10 months ago 6:02pm 27 December 2023
On a page of my D10 site where an insight is supposed to appear, I get this error in my console:
Uncaught TypeError: Selector must not be empty
being thrown by once
.
It stems from this call in insights.js:
once('qualtricsxm_insights:'+id)
That was recently part of a D10 compatibility issue (https://git.drupalcode.org/project/qualtricsxm/-/commit/b3dae6a5da7b95d0...) but the new syntax is buggy.
Go to a page with an insight.
The original code is this:
$(document).once('qualtricsxm_insights:'+id).each(function () {//the thing}
Per the once CR β the new syntax would be:
if (once('qualtricsxm_insights:'+id, 'html').length) {//the thing}
Do it
Needs review
1.0
Code