]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Tooltip: Provide argument for custom callback (#7522)
authorJukka Kurkela <jukka.kurkela@gmail.com>
Thu, 18 Jun 2020 21:37:27 +0000 (00:37 +0300)
committerGitHub <noreply@github.com>
Thu, 18 Jun 2020 21:37:27 +0000 (17:37 -0400)
src/plugins/plugin.tooltip.js

index 559f93b4a8e0398a43a4185863e4eb5dc4a80d45..4016fd808cd2e630789535c8798130155716f1fc 100644 (file)
@@ -669,7 +669,7 @@ export class Tooltip extends Element {
                }
 
                if (changed && options.custom) {
-                       options.custom.call(me);
+                       options.custom.call(me, [me]);
                }
        }