DataCursor suppresses distinct nested range cursors with comma-containing columns
Author: OskarEichlerCreated Aug 30, 2026Updated Sep 28, 2026
LabelsType: BugProduct: HighchartsStatus: Pending replyStatus: Stale
Expected behaviour
The recursion guard should suppress only the same cursor currently being emitted. Distinct range cursor column arrays must remain distinct, including ['a,b'] and ['a', 'b'].
Actual behaviour
buildEmittingTag() places cursor.columns inside an array and joins it into a string. JavaScript stringifies both column arrays as a,b, so a listener emitting the second distinct cursor while handling the first is incorrectly treated as a call-stack loop and silently skipped. Delimiter characters in other string fields can create similar collisions.
Live demo with steps to reproduce
let calls = 0;
cursor.addListener(table.id, 'hover', () => {
if (++calls === 1) {
cursor.emitCursor(table, {
type: 'range', columns: ['a', 'b'],
firstRow: 0, lastRow: 1, state: 'hover'
});
}
});
cursor.emitCursor(table, {
type: 'range', columns: ['a,b'],
firstRow: 0, lastRow: 1, state: 'hover'
});
console.log(calls); // 1, expected 2Product version
Highcharts source at 13.0.2 (48b5b3e99a0fa9aae9a357165a5a916f504afeca).
Affected browser(s)
All environments; this is cursor recursion-key construction.
Source: highcharts/highcharts