Skip to content

Commit 683b35d

Browse files
fix click handler
1 parent 18de408 commit 683b35d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/package/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ export function chart<T extends Array<SeriesActionParams>>(
7676

7777
if (nextOnClick !== onClick) {
7878
if (onClick) {
79-
chart.unsubscribeCrosshairMove(onClick);
79+
chart.subscribeClick(onClick);
8080
}
8181
onClick = nextOnClick;
8282
if (onClick) {
83-
chart.subscribeCrosshairMove(onClick);
83+
chart.unsubscribeClick(onClick);
8484
}
8585
}
8686

0 commit comments

Comments
 (0)