]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
add legend to the default onclick to make sample work (#9126)
authorJacco van den Berg <39033624+LeeLenaleee@users.noreply.github.com>
Wed, 19 May 2021 14:40:10 +0000 (16:40 +0200)
committerGitHub <noreply@github.com>
Wed, 19 May 2021 14:40:10 +0000 (10:40 -0400)
docs/configuration/legend.md

index 0be48c975b544e18842530d3ecb9859638ae8dff..f708f30e0bc6c4d0c5d636d44b4e0ef68e93c418 100644 (file)
@@ -176,7 +176,7 @@ var newLegendClickHandler = function (e, legendItem, legend) {
 
     if (index > 1) {
         // Do the original logic
-        defaultLegendClickHandler(e, legendItem);
+        defaultLegendClickHandler(e, legendItem, legend);
     } else {
         let ci = legend.chart;
         [