Add null check before tip.hide() on mouseout
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -281,7 +281,7 @@ export default function cytoscapeMap(mapData, dataLayerType, dataLayerOption, cu
|
||||
if (node.data("label").length > 10) tip.show();
|
||||
});
|
||||
cy.on('mouseout', 'node', function (event) {
|
||||
tip.hide();
|
||||
tip?.hide();
|
||||
});
|
||||
|
||||
// here we remember and recall positions
|
||||
|
||||
Reference in New Issue
Block a user