
I’m encountering an issue with a dissonance between what the TapTool registers versus what is selected on the CDS. With the following code:
taptool = figure.select(type=TapTool)
taptool.callback = CustomJS(args=
dict(),
code=cb)
Where cb is:
data = cb_data.source.data;
console.log("clicked");
console.log(cb_data.source.selected.indices);
item = data.cl[cb_data.source.selected.indices[0]];
if(item != undefined) {
// do something
}
Most of the time, a click (on a point on the figure) is registered, but selected is empty! I have to be hovering perfectly over it in order for selected and TapTool to agree. Am I accessing data from the wrong selected var?
Thanks,
Ryan

